I’m moving an existing project to ECS, and running into an issue with colliders. I’m generating creatures at runtime out of prefabs, and attaching ‘body part’ prefabs as child objects of a parent ‘creature’ prefab. The creature has a rigidbody but no colliders, and the body parts have colliders but no rigidbody. When using GameObjects, this works fine, as colliders belong to their parent rigidbody. In ECS, though, child colliders don’t seem to work, and need to be moved to the same entity as the rigidbody (e.g. PhysicsMass and PhysicsVelocity). Is there a suggested way to get this working?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
questions about rigidbodies and multiple colliders | 1 | 1597 | May 13, 2010 | |
What to do for Colliders? | 8 | 1850 | June 22, 2019 | |
rigid body, physics, colliders question | 2 | 1289 | November 4, 2013 | |
parent and children | 1 | 575 | May 14, 2020 | |
Issue with child rigidbodies+colliders | 1 | 1115 | December 18, 2015 |