N
N
neoluna2020-08-19 15:33:54
unreal engine
neoluna, 2020-08-19 15:33:54

How to move around a sphere?

Hi all. There is a ball, there is an avatar. How to make sure that the avatar moves around the ball and does not fall off it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nekit Medvedev, 2021-05-28
@NIKROTOS

You can find a way to get the normal and change the rotation in global coordinates under it.
There is another option to distort the image from the camera (fisheye), if the view is from the side, then you can move along the splines when hitting the ball.
if from a third person, you can place splines in the character itself, relative to which it will move (8 axes, for direction in all directions using the buttons), the rest is a matter of hierarchy. In this case, don't forget about the center of the sphere, it should be the main object.
Don't forget to turn off gravity where needed.
You can simply write the trajectory of motion through the formulas of the circle, the object moves forward (or in any other direction, only along the trajectory of a circle with a given radius. This option is the most correct, but you need to understand geometry ... or trigonometry, the rest is essentially a castle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question