Class RayPickSystem

java.lang.Object
com.marginallyclever.ro3.raypicking.RayPickSystem

public class RayPickSystem extends Object

RayPickSystem is for finding the MeshInstances that collide with a Ray. This is used for ray picking and path tracing.

For path tracing, it is important to optimize the ray/mesh intersection tests as much as possible. This is done by transforming each mesh into world space in a PathMesh. For ray picking, the optimization is less important, so the meshes are tested in their local space.

To use the RayPickSystem, create an instance, call reset(optimize), and then