About Store Forum Documentation Contact



Post Reply 
addForce, addVel, input issue
Author Message
dbuman Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
dbuman Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Post Reply