Raycast.onRaycastEnd
Douglas Lacerda edited this page Aug 22, 2018
·
4 revisions
virtual
Raycast.onRaycastEnd()
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.