About Store Forum Documentation Contact



Post Reply 
Using something like addForce on character
Author Message
Murky Offline
Member

Post: #1
Using something like addForce on character
What can I do to get the effect of this code applied to a character?

Code:
if(Kb.b(KB_E))player.addForce(Vec(0,1,0)*3);
12-02-2009 06:29 AM
Find all posts by this user Quote this message in a reply
katoun Offline
Member

Post: #2
RE: Using something like addForce on character
Hello.
Look at the 15 - Character Ragdoll.cpp tutorial grin
12-02-2009 09:40 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Using something like addForce on character
you can try player.ctrl.actor, but that depends on what you're trying to achieve
12-02-2009 04:22 PM
Find all posts by this user Quote this message in a reply
Murky Offline
Member

Post: #4
RE: Using something like addForce on character
The goal is have a jetpack on the character and have a key to use it. I liked the effect of addForce for it, but I couldn't figure out how to add it into the character.
12-02-2009 04:36 PM
Find all posts by this user Quote this message in a reply
Murky Offline
Member

Post: #5
RE: Using something like addForce on character
Thank you Esenthel, that worked perfectly!
12-03-2009 03:54 AM
Find all posts by this user Quote this message in a reply
Post Reply