awake method
Awake the rigid body.
Implementation
@override
void awake(){
if(!allowSleep || !sleeping ) return;
sleeping = false;
sleepTime = 0;
// awake connected constraints
ContactLink? cs = contactLink;
while(cs != null){
cs.body!.sleepTime = 0;
cs.body!.sleeping = false;
cs = cs.next;
}
JointLink? js = jointLink;
while(js != null){
js.body!.sleepTime = 0;
js.body!.sleeping = false;
js = js.next;
}
for(Shape? shape = shapes; shape != null; shape = shape.next ) {
shape.updateProxy();
}
}