class FoxBasic
package foxlite
extended by FoxAnimationBlender, FoxAnimationLinker, FoxTypedGroup, FoxPhysicsWorldBase, FoxObject
Constructor
Variables
animation:FoxAnimationPlayer
An animation controller for this basic. Although properties have to be manually linked, this is intended to be a general-purpose animator for this object
Methods
physicsUpdate(dt:Float):Void
Called when a physics frame occurs, this is a constant update regardless of framerate for a consistant physics simulation.
draw(camera:FoxCamera):Void
Intended for transforms, actual drawing happens in the camera render pass
pushDrawData(scene:FoxScene):Void
This function gets called when the scene starts building draw groups.
It should call the scene's addToDrawGroups() function for every drawable of this object.
Override this with your custom draw data function.
Note: Internal use only, it is a performance critical operation, keep it fast.
computeBounds(output:BoundingBox):Void
Gets the bounding box of all meshes and models inside groups
In FoxBasic this is just a template, do the actual implementation in
your models and groups
Parameters:
output | the Bounding Box where to store the result |
|---|
testAndCull(camera:FoxCamera):Void
Performs frustum culling by checking the bounding box against a camera frustum
isVisible():Bool
Template function that returns the final visibility for the basic. Frustum culling can affect this.
isActive():Bool
Template function that returns the final activated state for the basic. Frustum culling can affect this.