Hi - Looking for some advice on controllers with collision and gravity in a large rugged terrain environment. I want my up and down keys controlling forward and backward motion and my mouse to control viewing and gun sighting.
I've tried a few alternative techniques - using phy make box character controller ... with phy move character controller for my upkey and downkey which works well with a simple mouse control but I've found my characher can fly if I point ny mouse upwards and move forward with my upkey! The phy set gravity isn't taking effect properly. The charcter control example in the dark physics demo is the same approach to code, and has the same problem - I've managed to get on the roof and outside of the map on this demo! Changing the overall phy set gravity to > -9.8 seems to have no effect on this.
I then tried the phy make rigid body dynamic box approach but due to my rugged terrain, my box rotated into space, so I tried adding phy set rigid body linear velocity to -y to simulate gravity, and then use the same control for forward backward motion with the up and down keys - this works fine until I get to a bump in the map but then my box spins out. I also now have no mouse control and I'm not sure how this can be resolved. i have tried different combinations and don't seem to have got it right. there isnt alot of literature on dark physics so im learning as i go along. is there a convention that works well for my bumpmap .dbo terrains? and why doesn't phy set gravity work for me? is there another way to make my gravity work without breaking the controller code?
I'd really appreciate some pointers in the right direction here - is Dark Physics able to deliver the functionality I want or am I better off taking a dbpro approach to collision and gravity?
Cheers Mindy
[img]null[/img]