Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collider ¶
type Collider interface { //Origin() returns the world space transformed mesh origin Origin() vector.Vec //UpdateOrigin() Updates the collider world space transformed origin UpdateOrigin(vector.Vec) //ImplicitCollide() Parametric Solver Returns boolean for collision inside //plane and the float32 distance t for the collision. Typically if the distance //is within some epsilon value you would count a collision ImplicitCollide(point *vector.Vec, dir *vector.Vec) (collide bool, dist float32) //ExplicitCollide() non-paramteric tests if the ray crosses some threshold by //marching the ray some distance. Returns only whether a collision happened //due to sign changing ExplicitCollide(point *vector.Vec, dir *vector.Vec, dist float32) (collide bool) //RenderObjectID Associates a Mesh with its render object RenderObjectID() int //IsStatic recognizes if the collider is static in world space IsStatic() bool }
Collider Interface Represents Polymorphic types for Mesh Attached Colliders which may have an underlying vertice buffer/ parametric curve type surface for SDF representation
Click to show internal directories.
Click to hide internal directories.