Announcement

Collapse
No announcement yet.

Direction for adding torque in the rolling ball template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Direction for adding torque in the rolling ball template

    I was looking at the rolling ball template, it is very straightforward except for handling the input, the vector applied to the add torque seems a bit odd to me.

    Click image for larger version

Name:	ball.jpg
Views:	1
Size:	25.6 KB
ID:	1162392

    as you may see in the image, the axis for forward is x. However, in the blueprint graph, the moveforward is creating a torque vector with value set to y.

    Click image for larger version

Name:	torque.jpg
Views:	1
Size:	113.2 KB
ID:	1162393

    can anyone help me explain this?

    Thanks

    #2
    Torque is applied around the axis of rotation. So if you want to move forward in the X direction, you need to apply torque around the Y Vector to spin the ball forwards. If you want to make the ball spin on its axis you would apply Torque on the Z (spinning around the Z axis).

    Think of the axis like the axle of a wheel.

    Comment

    Working...
    X