BALL/SPHERE movement question!

I’m trying to create some mechanics with a simulated physics ball but I don’t figure it out how to move the ball from its direction.
I want the movement to be like a car or the front wheel of the car but without following the camera direction, i want from ball direction.


Ball_Movement.rar - Google Drive

Hey @WDRK23!

Are you referring to adding torque? Check out this non-Epic affiliated video on a similar process that may be what you are looking for:

I hope the above is the solution you need!

1 Like

Hey @WDRK23,

It’s a bit hard from your description to understand what you are wanting. To clarify, are you wanting the sphere to move only forward based on the forward vector of the ball, then turn in place to move left and right? And you want this independent of the camera, is that correct?

2 Likes

I don’t even know exactly how to explain it. I want to move the ball like you would move a wheel, not a ball.
Something similar as in this video

To clarify, are you wanting the sphere to move only forward based on the forward vector of the ball, then turn in place to move left and right? And you want this independent of the camera, is that correct?

Exaclty

Up??

Hey @WDRK23,

Okay, thank you for the clarification with the controls. You roll the ball (as described above) and then you turn the ball left and right using turn inputs (for example W and D) and the ball moves the direction that is indicated as forward. This is actually a simpler solution than you’d think.

First you need to add a scene component as a control. The reason we want this is because as you rotate your sphere, the position of your z axis will move, leading to the ball not wanting to turn the direction you are going.

Using the scene component, you are going to get the transform direction and use that for your torque. Then you are going to want to turn the scene component to change your forward direction. Finally, you will need to update your scene component to the balls location.

UnrealEditor_4y81jvHC3M

Let me know if this works for you!

2 Likes

Hey @WDRK23!

Checking in! Did the above work for you?

2 Likes

Yes man! I forgot to put as Solution. Sorry!
Thank you very much!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.