Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Water Tunneling Through Mug When Grabbed in VR (Unity 6.3+Obi 7.1.1+XR Interaction)
#2
Hi!

Make sure that the mug rigidbody is moved via MovePosition(), AddForce, .velocity, or any other method that modifies the rigid body's velocity.

XRGrabInteractable allows you to choose which method to use via its Movement Type property, you should use "Velocity Tracking". Using "Instantaneous" (the default) won't work as it directly sets the transform position, disregarding any physics simulation.

Also make sure that the mass of the rigidbody is higher than the mass of each fluid particle, otherwise the mug won't be able to impart large enough forces on the fluid to keep it inside.

kind regards,
Reply


Messages In This Thread
RE: Water Tunneling Through Mug When Grabbed in VR (Unity 6.3+Obi 7.1.1+XR Interaction) - by josemendez - 25 minutes ago