Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

API to disable movement for specific entities #254

Open
Shatur opened this issue Apr 24, 2022 · 0 comments
Open

API to disable movement for specific entities #254

Shatur opened this issue Apr 24, 2022 · 0 comments
Labels
enhancement New feature or improvement

Comments

@Shatur
Copy link
Contributor

Shatur commented Apr 24, 2022

In networking when you implementing rollback, you need to tick physics only networking objects and skip simulation for other visual only entities. I would add a component which freezes the entity. Like Visibility in Bevy. If such component present with boolean field is_frozen, then the object won't move, but still collide with other objects.

Naive approach would be lock translation and backup velocity for entities until this component is present. But is this the right way of doing it? Maybe Rapier have something for it?

@jcornaz jcornaz added the design label Apr 24, 2022
@jcornaz jcornaz removed the design label May 19, 2022
@jcornaz jcornaz added the enhancement New feature or improvement label Aug 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants