Tesseract Engine Documentation

GameObject Members

GameObject overview

Public Instance Constructors

GameObject Overloaded. Initializes a new instance of the GameObject class.

Public Instance Fields

animator Model animator
collisionMultiplier Defines the scale of damage or health an object bestows.
collisionWithPlayerResponse Defines what kind of collision response this GameObject should have.
combinedNormalForce Used in collision; combined velocity and totalForce normal calculation.
combinedTangentialForce Used in collision; combined velocity and totalForce tangential calculation.
controllerIndex Index to the game controller associated with this object
currentAnimation Animation currently running
die Die animation
gravityNormalComponent Used in collision; gravity normal calculation.
gravityTangentialComponent Used in collision; tangential gravity-force calculation.
heightDifference Difference between object height and terrain at it's x/z location. HeightDifference is positive when object is below the terrain.
idle Idle animation
jump 3D Cue used with jump sound.
localTerrainHeight Terrain height at object's x/z location.
modelAnimated Game Object animated or not
normalComponent Normal component of force calculations.
staticObjectValues Used to pass static instance data to shader (for static objects)
surfaceNormal Used in collision; surface normal calculation.
tangentialComponent Tangential component of force calculations.
totalForceNormalComponent Used in collision; normal totalForce calculation.
totalForceTangentialComponent Used in collision; tangential totalForce calculation.
velocityNormalComponent Used in collision; normal velocity-force calculation.
velocityTangentialComponent Used in collision; tangential velocity-force calculation.
walk Walk animation

Public Instance Properties

draw Draw object
drawAIVision AI Vision Draw object
drawBoundingVolume Draw object's bounding volume
isCollectable Defines if this object is collectable by players.
isKey Defines if this object is a Key object collected to pass the level.
load Draw object
mass Mass object, handles physics of GameObject.
objectModelName Text identifier for model name.

Public Instance Methods

Draw Draws a stand alone model with no instancing or triangle stripping.
Draw_Billboards Called after Draw method. Allows GameObjects to add Billboards to be drawn. List is cleared each pass, or frame.
DrawAIVision Draws the model for ai vision
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectHeight Sets the heightDifference parameter for this GameObject. HeightDifference is positive when object is below the terrain.
GetType (inherited from Object)Gets the Type of the current instance.
Load Load object data from Xml.
Load_Instanced Load object data from Xml.
LoadModel Load model data from XML
ObjectCollisionResponse Default behavior applies force based physics for rebound. Override to supplement behavior. Return true if collidedObject is absorbed or destroyed, else false.
PrepAttack Prepare to fire the particle
Rotate Method called when the rotation buttons have been pressed
RunController Runs the appropriate animation on the model
TerrainCollisionResponse Default behavior applies force based physics for rebound. Override to supplement or replace behavior.
ToString (inherited from Object)Returns a String that represents the current Object.
Translate Method called when the motion buttons have been pressed
Update Update this object

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

GameObject Class | DarkWynter.Engine.GameObjects Namespace