I'm messing about with Newton and I have developed a couple of different methods of controlling the character, but the movement never seems entirely natural.
I'm using TreeCollision for the floor model and I've basically had to turn off all friction between the player and floor models because the player gets "wobbly" and is thrown completely off course when it apparently "sticks" to the floor at almost random times. Doing so has given me the appearance of sliding collision, which is what I want, but now I'm running into something else that I can't quite compensate for.
The movement now seems to very slowly get off track and any attempts to compensate immediately (i.e., making a sharp turn) makes my player model spin around or roll over in the extreme case, or just wander way off track in the more common case.
My question is this, is there some sort of function in Newton that I am missing which will move the player on a directly linear path, much like the controls in DBPro? I'd like to be able to use the up and down keys to move forward and backward, while the left and right arrow keys would be used to strafe. Ideally, I'd like to use the mouse to point the heading for the character so that one is always walking in the direction in which the user is looking.
Additionally, I'm not liking how my current code using Newton seems to gradually apply the force at first, which creates a delay between the pressing (and holding) of the movement key and the actual movement, and how releasing the movement key does not bring the player model to an immediate rest, nor does applying an opposing force by using the opposite movement key.
The fact is, Newton is absolutely amazing and my experience as described above leads me to believe that I'm using Newton incorrectly for movement of my player model. I've been through Walaber's HTML documentation packaged with the wrapper, and while extremely helpful, I haven't found the solution in the documentation. All of the demos seem to use the above method for movement, unless I'm missing something.
Any suggestions from anyone who has created a movement system in Newton for character movement would be most welcome.