Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

thestonefox
Copy link
Member

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.

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.
@thestonefox thestonefox merged commit 1c6ba2a into master Sep 25, 2019
@thestonefox thestonefox deleted the fix/teleporting-on-trigger-colliders branch September 25, 2019 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant