Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make character move in two dimensions?

Asked by
Tiranin 45
10 years ago

I know that I can make character move 2D with BodyPosition, but this is more complex. With BodyPosition, I can make character only move on X and Y axis or Z and Y axis, but what I need is some combination of X, Z and Y axis. What I am trying to say, I wanna make character move on a line (example) 20° relative to X axis. How is that possible and is it possible with BodyPosition?

1 answer

Log in to vote
0
Answered by 10 years ago

Well you should give some kind of demonstration of what you want to do, at least visual representation.

Thought I want to note that using BodyPosition isn't too good for character controlling related stuff. I'd highly recommend using BodyVelocity, because it gives you all the control you need for custom movement system.

But yes, this is definitely possible, but you should demonstrate your situation, so I can understand how exactly it'd work.

0
BodyVelocity for that..? You're kidding, right? Tiranin 45 — 10y
0
I am not kidding at all. Body position has hard coded behaviour, where you cannot control the acceleration, or anything too much about that movement. If you know physics, you'll be able to make much better system just by altering velocity. ZarsBranchkin 885 — 10y
Ad

Answer this question