How do I logic a 2D sidescrolling vehicle like bikes in trials?
If I use a follower to attach on a single plane like regular 2D solutions then the bike can still spin around that point or topple over sideways. And the upright tool stops it from going up ramps.
I tried creating stabilisers by connecting it with a bolt to a sculpt following the one axis which solves all rotation issues but as soon as I make them both moveable the bolt cant handle the stress.
-
Sounds like you have it movable, and are trying to do this with physics. I think I wouldn't have it movable, just use logic for all the positioning and animation.
-
I think the gyroscope would do this. If I remember correctly, there are settings for the strength on different axes of rotation, so you want it to affect only Y and Z or X (depending on which way the camrea is facing).
Hope this helps. -
Unfortunately you can't change axis' strength on the gyro, otherwise it would be perfect!
I think the solution would be to somehow lock the rotation of the one axis, maybe by matching the rotation of another object but I'm not sure how to do that?
댓글을 남기려면 로그인하세요.