Announcement
Collapse
No announcement yet.
How to acheive negative speed
Collapse
X
-
Bohrium repliedIf you're using the default system like in 3rd person template, your anim blueprint will be using something like "TryGetPawnOwner > Get Velocity > VectorLength > Set Speed". Which means it will just take an absolute value of your speed, meaning it will always be positive. You can however do something like this for getting whether or not your actor is moving toward where it's facing or not:
And then you can use that Z value to determine whether your speed should be multiplied with -1 or not.
Leave a comment:
-
NDFJay repliedmultiply the speed by 1 for forward anim, multiply the speed by -1 for backwards anim
Leave a comment:
-
razee01 repliedOriginally posted by vegetamaker View PostIf I understood correctly your character already move forward and backward correctly, you just want that active a specific animation when moving backward right?
In this case this should be easy. Just change your animation depending speed value (if you can change it, you can get a reference for it).
Where to add it, I guess, should be just after where you change the Speed value.
Just do a check. If it is 1 or more, forward animation. If it is -1 or less, backward animation. And, if you want, if it is =0 idle animation.
Leave a comment:
-
vegetamaker repliedIf I understood correctly your character already move forward and backward correctly, you just want that active a specific animation when moving backward right?
In this case this should be easy. Just change your animation depending speed value (if you can change it, you can get a reference for it).
Where to add it, I guess, should be just after where you change the Speed value.
Just do a check. If it is 1 or more, forward animation. If it is -1 or less, backward animation. And, if you want, if it is =0 idle animation.
Leave a comment:
-
razee01 started a topic How to acheive negative speedHow to acheive negative speed
Hi, I have made a 1D blendspace with speed variable with a range of -100 to 100, where 0 is for idle mode and 100 for forward movement and -100 for backward movement. In the anim preview editor in when I put negative value for speed it shows the backward movement animation correctly. But the problem is when I start to play it shows the forward movement animation for both the forward and backward movement, means there is no negative speed for forward or backward input. So,how can I achieve negative speed or use my backward movement animation??? Any help?Tags: None
Leave a comment: