Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rigidbody with multiple moving colliders

Discussion in 'Physics' started by wojwen, Mar 16, 2019.

  1. wojwen

    wojwen

    Joined:
    Feb 13, 2018
    Posts:
    38
    I'm working on a prototype for a VR game where you use pickaxes to climb things and I'm struggling with getting Unity physics to do what I want. My initial approach was to attach the pickaxes to the hand anchors (which are moved by the Oculus SDK) and add rigid body to the player object (hand anchors are under it in the hierarchy). This worked pracially - the pickaxes were moving with the hands and I could use them to interact with different physics objects. The problem is that since the hand anchors positions are updated by changing their transform the pickaxes that are attached to them are essentially teleported. This results in no friction between them and the environment. Is there any way to make it work as it does now but with friction?