ExtendRealityLtd / VRTK

An example of how to use the Tilia packages to create great content with VRTK v4.
https://www.vrtk.io/
MIT License
3.69k stars 993 forks source link

fix(Locomotion): prevent teleport snap to floor onto trigger colliders #2059

Closed thestonefox closed 5 years ago

thestonefox commented 5 years ago

The SnapToFloor prefab was set up so the SurfaceLocator would cast a ray and consider a trigger collider a valid floor. This makes little sense as a trigger collider is usually used to determine a volume that can be entered and passed through. The fix is to add a custom PhysicsCast to the SnapToFloor prefab that has the setting to ignore trigger colliders for the RayCast. This can then still be disabled if required.