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

API to disable movement for specific entities #254

@Shatur

Description

@Shatur

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions