Ramu 0.7b doc
virtual
Raycast.onRaycastEnd()
Description
Triggered when the raycast ends (even if is ended because of an abort call).
You can test this snippet of code here.
new SimpleRectCollisor(10, 40, 50, 50);
class NewObj extends Raycast{
onRaycastEnd(){
this.destroy();
}
}
new NewObj(1,3,5,6).init(0, 0, 20, 30, 10);
Ramu.init();
Ramu.debugMode = true;
See also Collisor.onCollision.