Skip to content
Stephen K edited this page Apr 7, 2014 · 3 revisions

castRay(ray)

Cast a Ray against triangles

Parameters

ray: Ray,

Returns

Boolean, Whether there was a collision

addShape(tri)

Add a Triangle to the list of tris to collide against

Parameters

tri: Object,

trace(viewport)

Trace for objects through the viewport

Parameters

viewport: Viewport, The viewport to trace through

onmessage(e)

Handle incoming messages

Parameters

e: type,

Clone this wiki locally