I am using
nphysics2d to make a game and I want to store
Components. To do this, I require
RigidBodyHandle to be thread-safe.
RigidBodyHandle is defined as:
/// A shared, mutable, rigid body. pub type RigidBodyHandle = Rc<RefCell<RigidBody>>;
How can I make
RigidBodyHandle thread-safe? Is it even possible?