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

Option to restore entity position after physics simulation #959

Open
Anthony-Gaudino opened this issue Oct 6, 2024 · 1 comment
Open
Labels
feature request Discuss request for missing feature

Comments

@Anthony-Gaudino
Copy link

When the physics simulation is started entities will move around the world, for example, a character will ragdoll.

I could not find an option to reset the entity position to its position/origin from before the physics simulation started.

See the example below where I started the physics simulation and a character fell into the void and now its origin is not the same as the mesh position:
Screenshot 2024-10-06 191832

Saving the scene and opening it again will display the character back at the origin.

Note that it might be useful to be able to save a scene/entity in the state it is during the physics simulation, for example, if one wants to have a dead body, they could simulate physics and position the character somewhere in the world and when loading the scene again the body would be on the correct position.

Maybe the position of the entities should reset as soon as a user disables the physics simulation and entities would have an option to keep the state they are in the physics simulation (for the dead body example).
This would be similar to CryEngine where you could test the game by pressing ctrl+G and then when exiting everything would be back to what they were before the game started.

@turanszkij turanszkij added the feature request Discuss request for missing feature label Oct 7, 2024
@turanszkij
Copy link
Owner

This will be added sometime, I wanted it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Discuss request for missing feature
Projects
None yet
Development

No branches or pull requests

2 participants