Making something roll...

liamoliamo Member Posts: 191
edited February 2012 in Working with GS (Mac)
HI guys, how do you make a circular ball actor roll? At the moment it just slides, obviously that doesn't look natural. I need it to rotate based on the direction and speed its rolling. Any ideas?
Cheers
Liamo

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    If you havent already, change its collision shape to a circle.

    Then try constraining its angular velocity to its linear velocity x
  • liamoliamo Member Posts: 191
    just did that, it works, but it doesn't spin in the right direction, and it doesn't match the speed at which its travelling. Thx.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    constrain its angular velocity to -(self.motion.linear.velocity.x)

    then it will rotate the right way
  • bazookaBenbazookaBen Member Posts: 318
    or you could just make a slope, and drop the ball actor onto it ( minimal friction, circular collision shape). It'll roll based on how your slope is inclined.
Sign In or Register to comment.