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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

How do I add a joint to my players hand-held lantern to make it react to movement?

Discussion in 'Physics' started by VileGoo, Aug 10, 2018.

  1. VileGoo

    VileGoo

    Joined:
    Apr 29, 2017
    Posts:
    220
    I'm trying to setup some physics for my players arm model so the lantern they are holding reacts to the movement by swinging around; however, I am having issues. What I've been trying to do is create some empties with a rigid body component (with isKinematic turned on) added to it and using that as an anchor for the joints. However, no matter which physic joint I add (hinge, character, configurable) the objects float around like they're weightless around the anchor point and don't react to the players movement at all. Help would be appreciated!

     
    HonoraryBob likes this.
  2. Pouya_Jigsaw

    Pouya_Jigsaw

    Joined:
    Sep 9, 2018
    Posts:
    10
    I have the same problem. it would be great if someone talk about it.
     
  3. HonoraryBob

    HonoraryBob

    Joined:
    May 26, 2011
    Posts:
    1,212
    I'm having the same problem, even though I have a weight (another rigidbody) attached to the bottom with gravity enabled in an attempt to get the lantern to extend downward and swing. The lantern just either remains sticking out at the same angle as the player's hand, or slowly swings all over the place when the player moves but never settles out to a vertical orientation when the player stops moving. The problem is presumably due to the joint being too rigid to allow it to swing freely, but changing the settings (or changing the type of joint) has little effect.
     
    Last edited: Feb 26, 2020
  4. NickelVfiveCENTS

    NickelVfiveCENTS

    Joined:
    Oct 10, 2021
    Posts:
    1
    I think if you adjust the 'Drag' value in the rigidbody component of the lantern, it should work as expected.