Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Sphere, animated objects and...friction?

Discussion in 'Physics' started by Reject76, Aug 1, 2016.

  1. Reject76

    Reject76

    Joined:
    Jun 12, 2015
    Posts:
    38
    Hello people

    I'm having trouble with my simple game which Im using to (still) try and learn Unity.

    I have a simple sphere that the player controls. I've just recently added animated objects, but the player sphere is not interacting with the animated objects like I would want.

    For instance: I have a spinning disc (think an old school LP record). When the player sphere rolls onto the spinning disc, it does absolutely nothing. I want the sphere to "grip" onto the disc so that the spinning disc will throw the ball off.

    I've tried using Physic material on both the player sphere object and the spinning disc object and tried different settings on both sphere, disc and Physic material. The sphere can sit on top of the spinning disc, like any other static (unanimated) object, but the spinning animation does not affect the sphere at all.

    I'm guessing friction (Physic material) could be the wrong way to go about it since a very small part of the sphere is touching the world object and hence causing little to no actual friction (since its rollining, not dragging).

    Any ideas on how to go about this? Thanks.
     
  2. Reject76

    Reject76

    Joined:
    Jun 12, 2015
    Posts:
    38
    I've found a workaround to this, but Im really not sure if its best practise...

    I added a second copy of the animated object, removed animation from it and then attached it to the animated object by means of a fixed joint. I then attached my friction material to the copy of the object.

    So the copy of the object will move alongside and sit on top of the the original object which is animated. This way I can create friction to the player object.

    Just seems weird to me. How come animated objects cant have friction materal affecting them? Or did I miss something?