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

"Teleportation" when a ground block is removed and a character stands on it #4

Closed
Megus opened this issue Aug 16, 2018 · 2 comments
Closed

Comments

@Megus
Copy link
Contributor

Megus commented Aug 16, 2018

If a character stands on a ground block and you remove it using go.delete(), a character can (it seems that it happens in ~100% cases) "teleport" to some other coordinates. Expected behavior: character should fall down.

@britzl
Copy link
Owner

britzl commented Aug 18, 2018

What happens when you get ground contact is that you get parented (using set_parent) to the thing you land on. This makes it very easy to handle moving platforms. And when you no longer have ground contact the parent is removed (set_parent with id nil).

The problem you have encountered is that the player character looses its parent and its world transform which results in a new world transform for the player.

Not sure how to solve this. Perhaps via a function such as platypus.detach_from_parent() or something like that?

@britzl britzl closed this as completed in 3155c3a Aug 18, 2018
@britzl
Copy link
Owner

britzl commented Aug 18, 2018

Released new version: https://github.com/britzl/platypus/releases/tag/3.0.1

Would you mind giving it a try?

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

No branches or pull requests

2 participants