Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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.