Search Unity

Weird Problem with using Hinges

Discussion in 'Editor & General Support' started by yangmeng, Dec 6, 2006.

  1. yangmeng

    yangmeng

    Joined:
    Dec 5, 2006
    Posts:
    573
    I am trying to join two rigidbodies using different kinds of joints but none of them are working. I keep getting this warning:
    "PPtr cast failed when deferencing! Casting from Transform to Rigidbody!"
    I'm lost. Does anyone know what this means?
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    That sounds like a semi-rare nasty internal Unity bug that is nothing to do with you or your fault. I would recommend sending in a small reproducible test case (or whatever you have if that's all that works) using the Report Bug.app located next to Unity.

    Cheers,
    -Jon
     
  3. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Youve dragged an object onto the slot where the script is meant to go in the inspector, I think.
    I do it all the time
    AC
     
  4. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Me too. Use the dropdown list instead of drag drop in this case.

    That's not to say it's not a Unity issue that should be fixed - it ought to be smart enough to set it to the rigidbody instead of the transform.
     
  5. freyr

    freyr

    Joined:
    Apr 7, 2005
    Posts:
    1,148
    It should be. This clearly looks like a bug to me. Have you filed a bug report on it?