How to Destroy a PhysicsJoint Object in new Unity.Physics?
Hello, I have been looking at this project: https://github.com/Unity-Technologies/EntityComponentSystemSamples
Then I try to remove entity Physics object like that:
public void Execute(Entity entity, int jobIndex, ref MyComponet MyComponet)
{
if (MyComponet.lifetime < 0.0f)
{
CommandBuffer.DestroyEntity(jobIndex, entity);
}
}
Then I got errors like this
Comment
Your answer
Follow this Question
Related Questions
Physics object go through the mesh on animation play 1 Answer
Unity Pure ECS Physics Acting Weird Help!! 1 Answer
Simple ECS/DOTS collision system not working 1 Answer
the latest version of unity physics? 0 Answers
Animation Types Won't Play 0 Answers