
0
Answered
Rigidbody Movement
I have this simple code i would like to implement, but after tried "everything" i can't seem to get it to work.
This is a simple rigidbody movement using the input axis (vertical/horizontal).
This is the code

Then i just add the rigidbody to an capsule and the code runs fine, you can move the character using up/down/left/right keys.
When trying to do the same with bolt, my character gets stuck and can't move.
The character moves by 1 unity and then return to the center.

This is the setup of the variables

This is the movement of the character
Can someone help me find where the problem is? Thanks
Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Customer support service by UserEcho
I think I see it. For your input into the Move Position unit, here's what you're sending in
(CurrentPosition + Velocity) * timeDelta
when you actually want
CurrentPosition + (Velocity * timeDelta)
So I think moving around the multiple and add units will get you what you want.
can I get a visual of what you are saying?
You are right! It works now. Thanks