dbuman
Member
|
addForce, addVel, input issue
I've looked all over and I cant find a single instance where someone wanted to add a custom action or a condition for a specific movement.
I can do player.ctrl.actor.addForce(Vec(x,y,z));
but with x,y,z replaced with numbers it seems to only push in a certain direction.
I was wondering if there was a way to make addForce or addVel push in the direction the character is facing?
|
|
06-17-2011 02:29 AM |
|
dbuman
Member
|
RE: addForce, addVel, input issue
Nvm, I found out I can push forward by doing
if(Kb.b(KB_C))
{Player.input.move.z=1;}
|
|
06-18-2011 03:06 AM |
|