struct Eagle::Physics3D::RayHit

Overview

Where a ray hit: point, normal, distance and body.

Defined in:

eagle/physics/physics3d.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(point : Eagle::Vec3, normal : Eagle::Vec3, distance : Float32, body : Eagle::Physics3D::Body) #

Instance Method Detail

def body : Body #

The body that was hit.


def distance : Float32 #

Distance from the ray's origin to the hit.


def normal : Vec3 #

Surface normal at the hit.


def point : Vec3 #

Where the ray hit, in world space.