Moving Forward & BackWards onGround
by Ivan Alduan · in Torque X 2D · 12/03/2008 (2:50 am) · 1 replies
Hi people,
I'm trying to do my own subclass of T3DGroundControlComponent & always my player IsOnGround it remains stuck to the ground, no mather what velocity I put on the player asociated RigidComponent to move it.
I'm reading all the FPS demo code to view how it is doing it, I understand almost completely all the code, but believe it or not I can't find where is the code to move the player forward or backwards. It binds the move controls, do the jump, the turns, the aim, ... but nothing with the Sticks[0], only when the player is flying, the atribute ForwardVelocity from T3DGround.. don't appear anywhere,
anyone can help me?
Thanks
I'm trying to do my own subclass of T3DGroundControlComponent & always my player IsOnGround it remains stuck to the ground, no mather what velocity I put on the player asociated RigidComponent to move it.
I'm reading all the FPS demo code to view how it is doing it, I understand almost completely all the code, but believe it or not I can't find where is the code to move the player forward or backwards. It binds the move controls, do the jump, the turns, the aim, ... but nothing with the Sticks[0], only when the player is flying, the atribute ForwardVelocity from T3DGround.. don't appear anywhere,
anyone can help me?
Thanks
About the author
Torque Owner Ivan Alduan
" Physics: - Handles moving the object across the ground surface with analog stick 0. Movement is based on the ForwardSpeed and StrafeSpeed properties on the GroundPhysicsManagerComponent. "
Now I have to figure out why the mines keeps stuck..