Properties:
Name | Type | Description |
---|---|---|
inverseMatrix |
matrix.Matrix | [readonly] The inverse of |
location |
vec3 | (default: |
matrix |
matrix.Matrix | [readonly] The current transformation matrix. |
rotationAngle |
number | (default: |
rotationAxis |
vec3 | (default: |
rotationQuaternion |
Array.<number> | [readonly] The quaternion describing the current rotation. |
scale |
vec3 | (default: |
visible |
bool | (default: |
Extends
Methods
-
collisionsWith ()Array.<shf3d.Entity>
-
Performs collision detection with a vertex. Subclasses may override this method in order to implement collision detection.
Properties:
Name Type Description v
vec3 The vertex to check for.
Returns:
Type Description Array.<shf3d.Entity> - The entities colliding with the vertex.
-
Moves the entity by the given directional vector. The vector is expected to be in the entity-local coordinate-system.
Name Type Description dv
vec3 The directional vector.
-
Schedules a function to be executed with a GL context.
Name Type Description f
function The function.