Exemplo n.º 1
0
 //Delete the body (and its fixtures) from the physics simulation
 public void DeleteWithoutRemovingGameObject()
 {
     lpman.RemoveBody(myIndex);
     LPAPIBody.DeleteBody(lpman.GetPtr(), ThingPtr);
     foreach (LPFixture f in GetComponents <LPFixture>())
     {
         Destroy(f);
     }
     Destroy(GetComponent <LPBody>());
 }
Exemplo n.º 2
0
 //Delete the body (and its fixtures) from the physics simulation, also destroy the gameobject in unity.
 public override void Delete()
 {
     lpman.RemoveBody(myIndex);
     LPAPIBody.DeleteBody(lpman.GetPtr(), ThingPtr);
     Destroy(gameObject);
 }
Exemplo n.º 3
0
 public void DeleteWithoutRemovingComponents()
 {
     lpman.RemoveBody(myIndex);
     LPAPIBody.DeleteBody(lpman.GetPtr(), ThingPtr);
 }