I need it for an animation graph.
I use applyForce to move the character sideways on the x-axis. It should be positive and negative as well.
I need it for an animation graph.
I use applyForce to move the character sideways on the x-axis. It should be positive and negative as well.
Hi @SayHiToMePls,
You can get the speed vector like this:
const speedVec = this.entity.rigidbody.linearVelocity;
From there you can access an axis:
const speedX = speedVec.x;