1. #1

    How would I tie an area or hit trigger to only a part of a phsyics enabled glue group

    I have a platform on a rotational physics joint and I'd like to put a hit trigger on the underside so you need to spin it around to hit the trigger. I just can't figure it out. Any hit trigger tied to the glue group is triggered from anything in the group, and I can't add an area trigger to the glue group. I tried creating a 2nd object and using an object position event with the angle set to the physics object's angle but after half a turn it reverses direction and gets out of sync.
    Share this post

  2. #2
    Originally Posted by Reese6619 Go to original post
    I have a platform on a rotational physics joint and I'd like to put a hit trigger on the underside so you need to spin it around to hit the trigger. I just can't figure it out. Any hit trigger tied to the glue group is triggered from anything in the group, and I can't add an area trigger to the glue group. I tried creating a 2nd object and using an object position event with the angle set to the physics object's angle but after half a turn it reverses direction and gets out of sync.
    Here are some ways that may accomplish what I think you are doing.

    1. If you can spare another physics joint
    Connect your trigger piece under the platform using a Point-to-Point joint, and turn its physics on.

    2. Using OPE
    ;;; 'Platform' means the thing that rotates. 'Glue Group' means the trigger piece.

    First bring in 3 Vector Object Data Sources. Set 1 to Position, and the 2 to Rotation.
    Link 1 Rotation DS to the platform.
    Create a Glue piece on its own from the Physics category, and link the second Rotation DS to it.

    ;;; Because your trigger piece starts at a different angle than the platform, the same values won't work, so we first have to set the Glue Object's angle to match the platform.
    Now rotate the Glue object to match the platform.

    Create an invisible piece that will be the target of the Contact Trigger.
    Select the Glue object first, go into properties and Add glue members > the trigger piece.
    Set the Pivot point slightly higher than the trigger piece.
    Now delete the Rotation DS attached to the Glue group, because you won't need it anymore.

    Using your OPE, set the Rotation to World and link to the platform's Rotation DS.
    Set Position to World, and link to the platform's Position DS.
    Target the Glue Group.
    Share this post