Search Unity

OnTriggerEnter problems ( maybe related to fast moving object? )

Discussion in 'Physics' started by Disastorm, Oct 13, 2018.

  1. Disastorm

    Disastorm

    Joined:
    Jun 16, 2013
    Posts:
    69
    Hello everyone. I'm trying to make a rhythm game in VR, so the idea is to have a fast moving object ( currently a sphere ) intersect with the players hands ( also currently a sphere ) and detect it, however some of them seem to be not colliding properly. Here is my current config:

    Beat object ( sphere with kinematic, interpolate, continuous rigidbody and trigger collider )
    Hand object ( sphere with kinematic, interpolate, contious dynamic rigidbody and trigger collider )

    The beat object moves via the rigidbody using the MovePosition method.
    The Hand object is a child of another object that is controlled by SteamVR, so this object does not move via any rigidbody methods.

    I have an onTriggerEnter on both objects.

    What could the issue be in this case? Is it because the hand object is not moving via rigidbody object methods? What would be the solution for this? I suppose if this is the case, I could make the rigidbody get the position of the hands and then do a MovePosition to it, instead of making it a child.