Raycast.abort - HermesPasser/Ramu GitHub Wiki

Raycast.abort()

Description

Stops the raycast.

You can test this snippet of code here.

new SimpleRectCollisor(10, 40, 50, 50);

class NewObj extends Raycast{
   onCollision(){
      this.abort();
  }
}

new NewObj(1,3,5,6).init(0, 0, 20, 30, 10);

Ramu.init();
Ramu.debugMode = true;

See also Raycast.init.