setParent method

  1. @override
void setParent(
  1. World world
)
override

Set the parent of the body

Implementation

@override
void setParent(World world){
  parent = world;
  scale = parent!.scale;
  invScale = parent!.invScale;
  id = parent!.numRigidBodies;
  if(name != '') name = id.toString();

  //updateMesh();
}