About Store Forum Documentation Contact



Post Reply 
Character Movement
Author Message
Brainache Offline
Member

Post: #1
Character Movement
Hey,

If I want to manually move a CHR by a specific vector... without affecting the CHR's direction... how do I do that?

In the tutorials, I see:

input.anglei.x=Kb.b(KB_Q)-Kb.b(KB_E);
input.anglei.y=Kb.b(KB_T)-Kb.b(KB_G);
input.diri .x=Kb.b(KB_D)-Kb.b(KB_A);
input.diri .z=Kb.b(KB_W)-Kb.b(KB_S);

If I set these manually.. I can force movements.. but... I can still only make the CHR move in the direction it is facing...

Basically.. I am looking for something along the lines of...

position = position + velocity

thanks
08-18-2009 10:34 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
Re: Character Movement
ok, ill try to give access to additional movement control
not only along axes of facing
08-18-2009 10:47 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
Re: Character Movement
I can make a simple helper Vec2 which would apply custom velocity, but the problem would be with automatic detection for the animations.

as of now the animation detection is determined from the 'input' and not the target velocity.

so by adding Vec2 the player would move where you want, but with no automatic animations for movement.

if you want automatic animation detection according to Vec2 please wait, coz it will require rewriting the character animations calculations..
09-02-2009 09:19 PM
Find all posts by this user Quote this message in a reply
Brainache Offline
Member

Post: #4
Re: Character Movement
Sounds good... I'll wait for your solution for the animations. Thaks for all your efforts!
09-02-2009 09:37 PM
Find all posts by this user Quote this message in a reply
Post Reply