HexiDave
07-03-2006 00:37:24
I've been reading a few posts on the main Newton boards and I'm struggling (valiantly) to get this to work. The main thread I was looking through and had the most success was this.
I got to the same problem aidave2 was having and my character would spazz out right at the point where it should stop (spring action snaps it too far because of torque beeing so high and it would repeat.) At the bottom of the page is a "slow-down" spring listing, but I could not get it to work. Not even close.
I sat down with it for 3-4 hours trying everything I could think of, went through other methods (just calculating how much I want to rotate per-second) but the problem occurs where my character, despite having no torque added by me, will spin when pushed across the terrain (assuming friction here.)
The Newton SDK sample on CharacterController has a good method, but I can't figure out how to convert it to Ogre commands (the min/max statement containing the orientation matrix for the most part.) If anyone has any working sample code or suggestions, I'd greatly appriciate it - my physics knowledge is very weak right now.
Thanks again to anyone who offers help.
I got to the same problem aidave2 was having and my character would spazz out right at the point where it should stop (spring action snaps it too far because of torque beeing so high and it would repeat.) At the bottom of the page is a "slow-down" spring listing, but I could not get it to work. Not even close.
I sat down with it for 3-4 hours trying everything I could think of, went through other methods (just calculating how much I want to rotate per-second) but the problem occurs where my character, despite having no torque added by me, will spin when pushed across the terrain (assuming friction here.)
The Newton SDK sample on CharacterController has a good method, but I can't figure out how to convert it to Ogre commands (the min/max statement containing the orientation matrix for the most part.) If anyone has any working sample code or suggestions, I'd greatly appriciate it - my physics knowledge is very weak right now.
Thanks again to anyone who offers help.