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

Add guide for how to move psuedo body through colliders with teleporter #85

Open
thestonefox opened this issue Dec 16, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@thestonefox
Copy link
Member

thestonefox commented Dec 16, 2020

Update

This is now simpler:

  • add teleporter
  • then you call the teleporter to move the play area
  • Then in Teleported event call PsuedoBody.SnapToSource

Its not possible to simply teleport or move the play area through a collider with the pseudo body because it will resolve the collisions back to the rigidbody collider which cannot pass through colliders.

A simple guide showing how to achieve this with the teleporter:

  • add teleporter
  • then you call the teleporter to move the play area
  • in Teleporting event, disable the PsuedoBody GameObject (to prevent divergence resolution)
  • Then in Teleported event call Begin on a WaitForEndOfFrameYieldEmitter
  • Then in the WaitForEndOfFraimeYieldEmitter.Yieleded event, just re-enable the PsuedoBody GameObejct (and allow it to re-sync)
@thestonefox thestonefox added the documentation Improvements or additions to documentation label Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant