Torque2D Reference
Loading...
Searching...
No Matches
SceneObject Class Reference

#include <SceneObject.h>

Inheritance diagram for SceneObject:

Public Member Functions

 SceneObject ()
virtual ~SceneObject ()
virtual bool onAdd ()
 Engine.
virtual void onRemove ()
 Called when the object is removed from the sim.
virtual void onDestroyNotify (SceneObject *pSceneObject)
virtual void preIntegrate (const F32 totalTime, const F32 elapsedTime, DebugStats *pDebugStats)
 Integration.
virtual void integrateObject (const F32 totalTime, const F32 elapsedTime, DebugStats *pDebugStats)
virtual void postIntegrate (const F32 totalTime, const F32 elapsedTime, DebugStats *pDebugStats)
virtual void interpolateObject (const F32 timeDelta)
bool getIsEditorTickAllowed (void) const
void setBatchIsolated (const bool batchIsolated)
 Render batching.
virtual bool getBatchIsolated (void)
virtual bool isBatchRendered (void)
virtual bool validRender (void) const
virtual bool shouldRender (void) const
virtual bool canPrepareRender (void) const
 Render Output.
virtual void scenePrepareRender (const SceneRenderState *pSceneRenderState, SceneRenderQueue *pSceneRenderQueue)
virtual void sceneRender (const SceneRenderState *pSceneRenderState, const SceneRenderRequest *pSceneRenderRequest, BatchRender *pBatchRenderer)
virtual void sceneRenderFallback (const SceneRenderState *pSceneRenderState, const SceneRenderRequest *pSceneRenderRequest, BatchRender *pBatchRenderer)
virtual void sceneRenderOverlay (const SceneRenderState *pSceneRenderState)
virtual U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream)
 Networking.
virtual void unpackUpdate (NetConnection *conn, BitStream *stream)
Scene *const getScene (void) const
 Scene.
F32 getSceneTime (void) const
virtual void setEnabled (const bool enabled)
 Enabled.
void setLifetime (const F32 lifetime)
 Lifetime.
F32 getLifetime (void) const
void updateLifetime (const F32 elapsedTime)
void setSceneLayer (const U32 sceneLayer)
 Scene layers.
U32 getSceneLayer (void) const
U32 getSceneLayerMask (void) const
void setSceneLayerDepth (const F32 order)
 Scene Layer depth.
F32 getSceneLayerDepth (void) const
bool setSceneLayerDepthFront (void)
bool setSceneLayerDepthBack (void)
bool setSceneLayerDepthForward (void)
bool setSceneLayerDepthBackward (void)
void setSceneGroup (const U32 sceneGroup)
 Scene groups.
U32 getSceneGroup (void) const
U32 getSceneGroupMask (void) const
virtual void setArea (const Vector2 &corner1, const Vector2 &corner2)
 Area.
bool getAutoSizing (void) const
virtual void setSize (const Vector2 &size)
void setSize (const F32 width, const F32 height)
Vector2 getSize (void) const
Vector2 getHalfSize (void) const
b2AABB getAABB (void) const
RectF getAABBRectangle (void) const
S32 getWorldProxy (void) const
virtual void setPosition (const Vector2 &position)
 Position / Angle.
Vector2 getPosition (void) const
Vector2 getRenderPosition (void) const
F32 getRenderAngle (void) const
const b2Vec2 * getRenderOOBB (void) const
const b2Vec2 * getLocalSizedOOBB (void) const
virtual void setAngle (const F32 radians)
F32 getAngle (void) const
virtual void setFixedAngle (const bool fixed)
bool getFixedAngle (void) const
b2Transform getTransform (void) const
b2Transform getRenderTransform (void) const
Vector2 getLocalCenter (void) const
Vector2 getWorldCenter (void) const
Vector2 getLocalPoint (const Vector2 &worldPoint)
Vector2 getWorldPoint (const Vector2 &localPoint)
Vector2 getLocalVector (const Vector2 &worldVector)
Vector2 getWorldVector (const Vector2 &localVector)
bool getIsPointInOOBB (const Vector2 &worldPoint)
bool getIsPointInCollisionShape (const U32 shapeIndex, const Vector2 &worldPoint)
virtual ePhysicsProxyType getPhysicsProxyType (void) const
 Body.
b2Body * getBody (void) const
void setBodyType (const b2BodyType type)
b2BodyType getBodyType (void) const
void setActive (const bool active)
bool getActive (void) const
void setAwake (const bool awake)
bool getAwake (void) const
void setBullet (const bool bullet)
bool getBullet (void) const
void setSleepingAllowed (const bool allowed)
bool getSleepingAllowed (void) const
F32 getMass (void) const
F32 getInertia (void) const
void setCollisionAgainst (const SceneObject *pSceneObject, const bool clearMasks)
 Collision control.
void setCollisionGroupMask (const U32 groupMask)
U32 getCollisionGroupMask (void) const
void setCollisionLayerMask (const U32 layerMask)
U32 getCollisionLayerMask (void) const
void setDefaultDensity (const F32 density, const bool updateShapes=true)
F32 getDefaultDensity (void) const
void setDefaultFriction (const F32 friction, const bool updateShapes=true)
F32 getDefaultFriction (void) const
void setDefaultRestitution (const F32 restitution, const bool updateShapes=true)
F32 getDefaultRestitution (void) const
void setCollisionSuppress (const bool status)
bool getCollisionSuppress (void) const
void setCollisionOneWay (const bool status)
bool getCollisionOneWay (void) const
const Scene::typeContactVectorgetCurrentContacts (void) const
U32 getCurrentContactCount (void) const
virtual void setGatherContacts (const bool gatherContacts)
bool getGatherContacts (void) const
virtual void onBeginCollision (const TickContact &tickContact)
virtual void onEndCollision (const TickContact &tickContact)
void setLinearVelocity (const Vector2 &velocity)
 Velocities.
Vector2 getLinearVelocity (void) const
Vector2 getLinearVelocityFromWorldPoint (const Vector2 &worldPoint)
Vector2 getLinearVelocityFromLocalPoint (const Vector2 &localPoint)
void setAngularVelocity (const F32 velocity)
F32 getAngularVelocity (void) const
void setLinearDamping (const F32 damping)
F32 getLinearDamping (void) const
void setAngularDamping (const F32 damping)
F32 getAngularDamping (void) const
bool moveTo (const Vector2 &targetWorldPoint, const F32 speed, const bool autoStop=true, const bool snapToTarget=true, const F32 margin=0.1f)
 Move/Rotate to.
bool rotateTo (const F32 targetAngle, const F32 speed, const bool autoStop=true, const bool warpToTarget=true)
void cancelMoveTo (const bool autoStop=true)
void cancelRotateTo (const bool autoStop=true)
bool isMoveToComplete (void) const
bool isRotateToComplete (void) const
void updateTargetPosition (void)
bool fadeTo (const ColorF &targetColor, const F32 deltaRed, const F32 deltaGreen, const F32 deltaBlue, const F32 deltaAlpha)
void cancelFadeTo (void)
bool isFadeToComplete (void) const
virtual void updateBlendColor (const F32 elapsedTime)
virtual void checkFadeComplete ()
bool growTo (const Vector2 &targetSize, const Vector2 &deltaSize)
void cancelGrowTo (void)
bool isGrowToComplete (void) const
void updateSize (const F32 elapsedTime)
void applyForce (const Vector2 &worldForce, const bool wake=true)
 Force and impulse.
void applyForce (const Vector2 &worldForce, const Vector2 &worldPoint, const bool wake=true)
void applyTorque (const F32 torque, const bool wake=true)
void applyLinearImpulse (const Vector2 &worldImpulse, const bool wake=true)
void applyLinearImpulse (const Vector2 &worldImpulse, const Vector2 &worldPoint, const bool wake=true)
void applyAngularImpulse (const F32 impulse, const bool wake=true)
void setGravityScale (const F32 scale)
 Gravity scaling.
F32 getGravityScale (void) const
void deleteCollisionShape (const U32 shapeIndex)
 General collision shape access.
void clearCollisionShapes (void)
U32 getCollisionShapeCount (void) const
b2Shape::Type getCollisionShapeType (const U32 shapeIndex) const
S32 getCollisionShapeIndex (const b2Fixture *pFixture) const
void setCollisionShapeDefinition (const U32 shapeIndex, const b2FixtureDef &fixtureDef)
b2FixtureDef getCollisionShapeDefinition (const U32 shapeIndex) const
const b2CircleShape * getCollisionCircleShape (const U32 shapeIndex) const
const b2PolygonShape * getCollisionPolygonShape (const U32 shapeIndex) const
const b2ChainShape * getCollisionChainShape (const U32 shapeIndex) const
const b2EdgeShape * getCollisionEdgeShape (const U32 shapeIndex) const
void setCollisionShapeDensity (const U32 shapeIndex, const F32 density)
F32 getCollisionShapeDensity (const U32 shapeIndex) const
void setCollisionShapeFriction (const U32 shapeIndex, const F32 friction)
F32 getCollisionShapeFriction (const U32 shapeIndex) const
void setCollisionShapeRestitution (const U32 shapeIndex, const F32 restitution)
F32 getCollisionShapeRestitution (const U32 shapeIndex) const
void setCollisionShapeIsSensor (const U32 shapeIndex, const bool isSensor)
bool getCollisionShapeIsSensor (const U32 shapeIndex) const
S32 createCircleCollisionShape (const F32 radius)
 Circle collision shape creation.
S32 createCircleCollisionShape (const F32 radius, const b2Vec2 &localPosition)
F32 getCircleCollisionShapeRadius (const U32 shapeIndex) const
 Circle collision shape access.
Vector2 getCircleCollisionShapeLocalPosition (const U32 shapeIndex) const
S32 createPolygonCollisionShape (const U32 pointCount, const b2Vec2 *localPoints)
 Polygon collision shape creation.
S32 createPolygonBoxCollisionShape (const F32 width, const F32 height)
S32 createPolygonBoxCollisionShape (const F32 width, const F32 height, const b2Vec2 &localCentroid)
S32 createPolygonBoxCollisionShape (const F32 width, const F32 height, const b2Vec2 &localCentroid, const F32 rotation)
U32 getPolygonCollisionShapePointCount (const U32 shapeIndex) const
 Polygon collision shape access.
Vector2 getPolygonCollisionShapeLocalPoint (const U32 shapeIndex, const U32 pointIndex) const
S32 createChainCollisionShape (const U32 pointCount, const b2Vec2 *localPoints)
 Chain collision shape creation.
S32 createChainCollisionShape (const U32 pointCount, const b2Vec2 *localPoints, const bool hasAdjacentLocalPositionStart, const bool hasAdjacentLocalPositionEnd, const b2Vec2 &adjacentLocalPositionStart, const b2Vec2 &adjacentLocalPositionEnd)
U32 getChainCollisionShapePointCount (const U32 shapeIndex) const
 Chain collision shape access.
Vector2 getChainCollisionShapeLocalPoint (const U32 shapeIndex, const U32 pointIndex) const
bool getChainCollisionShapeHasAdjacentStart (const U32 shapeIndex) const
bool getChainCollisionShapeHasAdjacentEnd (const U32 shapeIndex) const
Vector2 getChainCollisionShapeAdjacentStart (const U32 shapeIndex) const
Vector2 getChainCollisionShapeAdjacentEnd (const U32 shapeIndex) const
S32 createEdgeCollisionShape (const b2Vec2 &localPositionStart, const b2Vec2 &localPositionEnd)
 Edge collision shape creation.
S32 createEdgeCollisionShape (const b2Vec2 &localPositionStart, const b2Vec2 &localPositionEnd, const bool hasAdjacentLocalPositionStart, const bool hasAdjacentLocalPositionEnd, const b2Vec2 &adjacentLocalPositionStart, const b2Vec2 &adjacentLocalPositionEnd)
Vector2 getEdgeCollisionShapeLocalPositionStart (const U32 shapeIndex) const
 Edge collision shape access.
Vector2 getEdgeCollisionShapeLocalPositionEnd (const U32 shapeIndex) const
bool getEdgeCollisionShapeHasAdjacentStart (const U32 shapeIndex) const
bool getEdgeCollisionShapeHasAdjacentEnd (const U32 shapeIndex) const
Vector2 getEdgeCollisionShapeAdjacentStart (const U32 shapeIndex) const
Vector2 getEdgeCollisionShapeAdjacentEnd (const U32 shapeIndex) const
void setVisible (const bool status)
 Render visibility.
bool getVisible (void) const
void setBlendMode (const bool blendMode)
 Render blending.
bool getBlendMode (void) const
void setSrcBlendFactor (const S32 blendFactor)
S32 getSrcBlendFactor (void) const
void setDstBlendFactor (const S32 blendFactor)
S32 getDstBlendFactor (void) const
void setBlendColor (const ColorF &blendColor)
const ColorFgetBlendColor (void) const
void setBlendAlpha (const F32 alpha)
F32 getBlendAlpha (void) const
void setAlphaTest (const F32 alpha)
F32 getAlphaTest (void) const
void setBlendOptions (void)
void setSortPoint (const Vector2 &pt)
 Render sorting.
const Vector2getSortPoint (void) const
void setRenderGroup (const char *pRenderGroup)
StringTableEntry getRenderGroup (void) const
void setUseInputEvents (bool mouseStatus)
 Input events.
bool getUseInputEvents (void) const
virtual bool onInputEvent (StringTableEntry name, const GuiEvent &event, const Vector2 &worldMousePoint)
void setUpdateCallback (bool status)
bool getUpdateCallback (void) const
void setCollisionCallback (const bool status)
bool getCollisionCallback (void) const
void setSleepingCallback (bool status)
bool getSleepingCallback (void) const
void setDebugOn (const U32 debugMask)
 Debug mode.
void setDebugOff (const U32 debugMask)
U32 getDebugMask (void) const
void addCameraMountReference (SceneWindow *pAttachedCamera)
 Camera mounting.
void removeCameraMountReference (void)
void dismountCamera (void)
void attachGui (GuiControl *pGuiControl, SceneWindow *pSceneWindow, const bool sizeControl, const Vector2 offset)
void detachGui (void)
void detachGui (GuiControl *pGuiControl)
void detachAllGuiControls (void)
void updateAttachedGui (void)
void setPickingAllowed (const bool pickingAllowed)
bool getPickingAllowed (void) const
virtual void copyFrom (SceneObject *pSceneObject, const bool copyDynamicFields)
 Cloning.
virtual void copyTo (SimObject *object)
S32 copyCollisionShapes (SceneObject *pSceneObject, const bool clearTargetShapes=true, const S32 shapeIndex=-1)
void setSafeDelete (const bool status)
 Safe deletion.
bool getSafeDelete (void) const
bool isBeingDeleted (void) const
virtual void safeDelete (void)
void addDestroyNotification (SceneObject *pSceneObject)
 Destroy notifications.
void removeDestroyNotification (SceneObject *pSceneObject)
void processDestroyNotifications (void)
void notifyComponentsAddToScene (void)
 Component notifications.
void notifyComponentsRemoveFromScene (void)
void notifyComponentsUpdate (void)
const char * scriptThis (void) const
 Miscellaneous.
bool getIsAlwaysInScope (void) const
void setWorldQueryKey (const U32 key)
U32 getWorldQueryKey (void) const
U32 getSerialId (void) const
void addAudioHandle (AUDIOHANDLE handle)
U32 getSound (S32 index)
S32 getSoundsCount ()
void refreshsources ()
virtual bool writeField (StringTableEntry fieldname, const char *value)
 DECLARE_CONOBJECT (SceneObject)
 Declare Console Object.
Public Member Functions inherited from BehaviorComponent
 BehaviorComponent ()
virtual ~BehaviorComponent ()
virtual void onDeleteNotify (SimObject *object)
BehaviorInstancegetBehaviorByInstanceId (const U32 behaviorId)
 Behavior interface.
virtual bool addBehavior (BehaviorInstance *bi)
virtual bool removeBehavior (BehaviorInstance *bi, bool deleteBehavior=true)
virtual void clearBehaviors ()
virtual U32 getBehaviorCount () const
virtual const SimSetgetBehaviors () const
virtual BehaviorInstancegetBehavior (StringTableEntry behaviorTemplateName)
virtual BehaviorInstancegetBehavior (const U32 index)
virtual bool reOrder (BehaviorInstance *obj, U32 desiredIndex)
bool connect (BehaviorInstance *pOutputBehavior, BehaviorInstance *pInputBehavior, StringTableEntry pOutputName, StringTableEntry pInputName)
 Behavior connectivity.
bool disconnect (BehaviorInstance *pOutputBehavior, BehaviorInstance *pInputBehavior, StringTableEntry pOutputName, StringTableEntry pInputName)
bool raise (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName)
U32 getBehaviorConnectionCount (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName)
const BehaviorPortConnectiongetBehaviorConnection (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName, const U32 connectionIndex)
const typePortConnectionVectorgetBehaviorConnections (BehaviorInstance *pOutputBehavior, StringTableEntry pOutputName)
virtual bool handlesConsoleMethod (const char *fname, S32 *routingId)
 DynamicConsoleMethodComponent Overrides.
virtual const char * callOnBehaviors (U32 argc, const char *argv[])
virtual void write (Stream &stream, U32 tabStop, U32 flags=0)
 SimComponent overrides.
 DECLARE_CONOBJECT (BehaviorComponent)
Public Member Functions inherited from DynamicConsoleMethodComponent
const char * callMethod (S32 argc, const char *methodName,...)
 Call Method format string.
virtual const char * callMethodArgList (U32 argc, const char *argv[], bool callThis=true)
 Call Method.
 DECLARE_CONOBJECT (DynamicConsoleMethodComponent)
Public Member Functions inherited from SimComponent
 DECLARE_CONOBJECT (SimComponent)
 SimComponent ()
virtual ~SimComponent ()
virtual bool processArguments (S32 argc, const char **argv)
 Process constructor options. (ie, new SimObject(1,2,3)).
bool hasComponents () const
 Will return true if this object contains components.
const SimComponentgetOwner () const
 The component which owns this object.
virtual StringTableEntry getComponentName ()
virtual bool addComponent (SimComponent *component)
 Add Component to this one.
virtual bool removeComponent (SimComponent *component)
 Remove Component from this one.
virtual bool clearComponents ()
 Clear Child components of this one.
virtual bool onComponentAdd (SimComponent *target)
virtual void onComponentRemove (SimComponent *target)
U32 getComponentCount ()
SimComponentgetComponent (const U32 index)
bool isEnabled () const
virtual void onUpdate (void)
virtual void onAddToScene (void)
virtual void onRemoveFromScene (void)
bool callMethodOnComponents (U32 argc, const char *argv[], const char **result)
Public Member Functions inherited from SimObject
StringTableEntry getClassNamespace () const
StringTableEntry getSuperClassNamespace () const
void setClassNamespace (const char *classNamespace)
void setSuperClassNamespace (const char *superClassNamespace)
void pushScriptCallbackGuard (void)
void popScriptCallbackGuard (void)
S32 getScriptCallbackGuard (void)
virtual SimObjectfindObject (const char *name)
NamespacegetNamespace ()
 Return the object's namespace.
const char * tabComplete (const char *prevText, S32 baseLen, bool)
virtual void dump ()
virtual void dumpClassHierarchy ()
SimObjectclone (const bool copyDynamicFields)
SimObjectdeepClone ()
template<typename T>
bool isType (void)
 DECLARE_CONOBJECT (SimObject)
virtual void writeFields (Stream &stream, U32 tabStop)
virtual bool writeObject (Stream *stream)
virtual bool readObject (Stream *stream)
virtual void buildFilterList ()
void addFieldFilter (const char *fieldName)
void removeFieldFilter (const char *fieldName)
void clearFieldFilters ()
bool isFiltered (const char *fieldName)
void assignFieldsFrom (SimObject *obj)
void copyFieldsFrom (SimObject *obj, const U32 flags)
void assignDynamicFieldsFrom (SimObject *obj)
NotifyremoveNotify (void *ptr, Notify::Type)
 Remove a notification from the list.
void deleteNotify (SimObject *obj)
 Notify an object when we are deleted.
void clearNotify (SimObject *obj)
 Notify an object when we are cleared.
void clearAllNotifications ()
 Remove all notifications for this object.
void processDeleteNotifies ()
 Send out deletion notifications.
void registerReference (SimObject **obj)
void unregisterReference (SimObject **obj)
void addListener (std::string objID)
void removeListener (std::string objID)
void removeAllListeners ()
void postEvent (std::string eventName, std::string data)
const char * getDataField (StringTableEntry slotName, const char *array)
virtual void setDataField (StringTableEntry slotName, const char *array, const char *value)
const char * getPrefixedDataField (StringTableEntry fieldName, const char *array)
void setPrefixedDataField (StringTableEntry fieldName, const char *array, const char *value)
const char * getPrefixedDynamicDataField (StringTableEntry fieldName, const char *array, const S32 fieldType=-1)
void setPrefixedDynamicDataField (StringTableEntry fieldName, const char *array, const char *value, const S32 fieldType=-1)
StringTableEntry getDataFieldPrefix (StringTableEntry fieldName)
U32 getDataFieldType (StringTableEntry slotName, const char *array)
SimFieldDictionarygetFieldDictionary ()
void clearDynamicFields (void)
 Clear all dynamic fields.
void setCanSaveDynamicFields (bool bCanSave)
 Set whether fields created at runtime should be saved. Default is true.
bool getCanSaveDynamicFields (void) const
 Get whether fields created at runtime should be saved. Default is true.
void setInternalName (const char *newname)
StringTableEntry getInternalName ()
 Get the internal of of this control.
virtual bool save (const char *pcFilePath, bool bOnlySelected=false)
 Save object as a TorqueScript File.
virtual bool isMethod (const char *methodName)
 Check if a method exists in the objects current namespace.
SimObjectId getId (void) const
StringTableEntry getIdString (void) const
U32 getType () const
const StringTableEntry getName (void) const
void setId (SimObjectId id)
void assignName (const char *name)
SimGroupgetGroup () const
bool isChildOfGroup (SimGroup *pGroup)
bool isProperlyAdded () const
bool isDeleted () const
bool isRemoved () const
bool isLocked () const
void setLocked (bool b)
bool isHidden () const
void setHidden (bool b)
void setProgenitorFile (const char *pFile)
StringTableEntry getProgenitorFile (void) const
void setPeriodicTimerID (const S32 timerID)
S32 getPeriodicTimerID (void) const
bool isPeriodicTimerActive (void) const
bool isSelected () const
bool isExpanded () const
void setSelected (bool sel)
void setExpanded (bool exp)
void setModDynamicFields (bool dyn)
void setModStaticFields (bool sta)
 SimObject ()
virtual ~SimObject ()
virtual void onGroupAdd ()
 Called when the object is added to a SimGroup.
virtual void onGroupRemove ()
 Called when the object is removed from a SimGroup.
virtual void onNameChange (const char *name)
 Called when the object's name is changed.
virtual void onStaticModified (const char *slotName, const char *newValue=NULL)
virtual void inspectPreApply ()
virtual void inspectPostApply ()
virtual void onEditorEnable ()
 Called when the editor is activated.
virtual void onEditorDisable ()
 Called when the editor is deactivated.
bool registerObject ()
bool registerObject (U32 id)
bool registerObject (const char *name)
bool registerObject (const char *name, U32 id)
void unregisterObject ()
void deleteObject ()
bool addToSet (SimObjectId)
bool addToSet (const char *)
bool removeFromSet (SimObjectId)
bool removeFromSet (const char *)
Public Member Functions inherited from ConsoleObject
const AbstractClassRep::FieldfindField (StringTableEntry fieldName) const
 Get a reference to a field by name.
virtual AbstractClassRepgetClassRep () const
 Gets the ClassRep.
bool setField (const char *fieldName, const char *value)
 Set the value of a field.
virtual ~ConsoleObject ()
const AbstractClassRep::FieldListgetFieldList () const
 Get a list of all the fields. This information cannot be modified.
AbstractClassRep::FieldListgetModifiableFieldList ()
bool & getDynamicGroupExpand ()
S32 getClassId (U32 netClassGroup) const
const char * getClassName () const
Public Member Functions inherited from SceneRenderObject
 SceneRenderObject ()
virtual ~SceneRenderObject ()
Public Member Functions inherited from PhysicsProxy
 PhysicsProxy ()
virtual ~PhysicsProxy ()

Static Public Member Functions

static void initPersistFields ()
static void resetBlendOptions (void)
static U32 getGlobalSceneObjectCount (void)
static b2BodyType getBodyTypeEnum (const char *label)
static const char * getBodyTypeDescription (const b2BodyType bodyType)
static b2Shape::Type getCollisionShapeTypeEnum (const char *label)
static const char * getCollisionShapeTypeDescription (const b2Shape::Type collisionShapeType)
static S32 getSrcBlendFactorEnum (const char *label)
static S32 getDstBlendFactorEnum (const char *label)
static const char * getSrcBlendFactorDescription (const GLenum factor)
static const char * getDstBlendFactorDescription (const GLenum factor)
Static Public Member Functions inherited from SimComponent
static void initPersistFields ()
static bool setEnabled (void *obj, const char *data)
static bool writeEnabled (void *obj, StringTableEntry pFieldName)
Static Public Member Functions inherited from SimObject
static void initPersistFields ()
Static Public Member Functions inherited from ConsoleObject
static const char * lookupClassName (const U32 in_classTag)
 Get the classname from a class tag.
static void initPersistFields ()
static void consoleInit ()
static AbstractClassRepgetStaticClassRep ()
 Get the abstract class information for this class.
static AbstractClassRepgetParentStaticClassRep ()
 Get the abstract class information for this class's superclass.
static ConsoleObjectcreate (const char *in_pClassName)
static ConsoleObjectcreate (const U32 groupId, const U32 typeId, const U32 in_classId)

Protected Member Functions

virtual void OnRegisterScene (Scene *pScene)
 Scene (un)registering.
virtual void OnUnregisterScene (Scene *pScene)
void resetTickSpatials (const bool resize=false)
 Ticking.
bool getSpatialDirty (void) const
void initializeContactGathering (void)
 Contact processing.
virtual void onTamlCustomWrite (TamlCustomNodes &customNodes)
 Taml callbacks.
virtual void onTamlCustomRead (const TamlCustomNodes &customNodes)
 Called during the reading of the object to allow custom properties to be read.
void updateFadeColor (ColorF &color, FadeToColor &target, const F32 elapsedTime)
F32 processEffect (const F32 current, const F32 target, const F32 rate)
S32 copyCircleCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
S32 copyPolygonCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
S32 copyChainCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
S32 copyEdgeCollisionShapeTo (SceneObject *pSceneObject, const b2FixtureDef &fixtureDef) const
Protected Member Functions inherited from BehaviorComponent
virtual const char * _callMethod (U32 argc, const char *argv[], bool callThis=true)
Protected Member Functions inherited from SimComponent
SimComponent_getOwner ()
VectorPtr< SimComponent * > & lockComponentList ()
void unlockComponentList ()
virtual bool onComponentRegister (SimComponent *owner)
virtual void onComponentUnRegister ()
Protected Member Functions inherited from SimObject
virtual void onTamlPreWrite (void)
 Taml callbacks.
virtual void onTamlPostWrite (void)
 Called after Taml has finished writing the object.
virtual void onTamlPreRead (void)
 Called prior to Taml reading the object.
virtual void onTamlPostRead (const TamlCustomNodes &customNodes)
virtual void onTamlAddParent (SimObject *pParentObject)
 Called after Taml has finished reading the object and has added the object to any parent.
void linkNamespaces ()
void unlinkNamespaces ()
virtual SimObjectallocClone ()
 A registered but empty object of this object's class.
void cloneInto (SimObject *clone)
virtual void deepCloneChildren (SimObject *clone)
Protected Member Functions inherited from ConsoleObject
 ConsoleObject ()
 ConsoleObject (const ConsoleObject &)

Static Protected Member Functions

static S32 QSORT_CALLBACK sceneObjectLayerDepthSort (const void *a, const void *b)
static bool setLifetime (void *obj, const char *data)
 Lifetime.
static bool writeLifetime (void *obj, StringTableEntry pFieldName)
static bool setSceneLayer (void *obj, const char *data)
 Scene layers.
static bool writeSceneLayer (void *obj, StringTableEntry pFieldName)
static bool setSceneLayerDepth (void *obj, const char *data)
static bool writeSceneLayerDepth (void *obj, StringTableEntry pFieldName)
static bool setSceneGroup (void *obj, const char *data)
 Scene groups.
static bool writeSceneGroup (void *obj, StringTableEntry pFieldName)
static bool setSize (void *obj, const char *data)
 Area.
static bool writeSize (void *obj, StringTableEntry pFieldName)
static bool setPosition (void *obj, const char *data)
 Position / Angle.
static const char * getPosition (void *obj, const char *data)
static bool writePosition (void *obj, StringTableEntry pFieldName)
static bool setAngle (void *obj, const char *data)
static const char * getAngle (void *obj, const char *data)
static bool writeAngle (void *obj, StringTableEntry pFieldName)
static bool setFixedAngle (void *obj, const char *data)
static const char * getFixedAngle (void *obj, const char *data)
static bool writeFixedAngle (void *obj, StringTableEntry pFieldName)
static bool setBodyType (void *obj, const char *data)
 Body.
static const char * getBodyType (void *obj, const char *data)
static bool writeBodyType (void *obj, StringTableEntry pFieldName)
static bool setActive (void *obj, const char *data)
static const char * getActive (void *obj, const char *data)
static bool writeActive (void *obj, StringTableEntry pFieldName)
static bool setAwake (void *obj, const char *data)
static const char * getAwake (void *obj, const char *data)
static bool writeAwake (void *obj, StringTableEntry pFieldName)
static bool setBullet (void *obj, const char *data)
static const char * getBullet (void *obj, const char *data)
static bool writeBullet (void *obj, StringTableEntry pFieldName)
static bool setSleepingAllowed (void *obj, const char *data)
static const char * getSleepingAllowed (void *obj, const char *data)
static bool writeSleepingAllowed (void *obj, StringTableEntry pFieldName)
static bool setDefaultDensity (void *obj, const char *data)
 Collision control.
static bool writeDefaultDensity (void *obj, StringTableEntry pFieldName)
static bool setDefaultFriction (void *obj, const char *data)
static bool writeDefaultFriction (void *obj, StringTableEntry pFieldName)
static bool setDefaultRestitution (void *obj, const char *data)
static bool writeDefaultRestitution (void *obj, StringTableEntry pFieldName)
static bool setCollisionGroups (void *obj, const char *data)
static const char * getCollisionGroups (void *obj, const char *data)
static bool writeCollisionGroups (void *obj, StringTableEntry pFieldName)
static bool setCollisionLayers (void *obj, const char *data)
static const char * getCollisionLayers (void *obj, const char *data)
static bool writeCollisionLayers (void *obj, StringTableEntry pFieldName)
static bool writeCollisionSuppress (void *obj, StringTableEntry pFieldName)
static bool writeCollisionOneWay (void *obj, StringTableEntry pFieldName)
static bool setGatherContacts (void *obj, const char *data)
static bool writeGatherContacts (void *obj, StringTableEntry pFieldName)
static bool setLinearVelocity (void *obj, const char *data)
 Velocities.
static const char * getLinearVelocity (void *obj, const char *data)
static bool writeLinearVelocity (void *obj, StringTableEntry pFieldName)
static bool setAngularVelocity (void *obj, const char *data)
static const char * getAngularVelocity (void *obj, const char *data)
static bool writeAngularVelocity (void *obj, StringTableEntry pFieldName)
static bool setLinearDamping (void *obj, const char *data)
static const char * getLinearDamping (void *obj, const char *data)
static bool writeLinearDamping (void *obj, StringTableEntry pFieldName)
static bool setAngularDamping (void *obj, const char *data)
static const char * getAngularDamping (void *obj, const char *data)
static bool writeAngularDamping (void *obj, StringTableEntry pFieldName)
static bool setGravityScale (void *obj, const char *data)
 Gravity scaling.
static const char * getGravityScale (void *obj, const char *data)
static bool writeGravityScale (void *obj, StringTableEntry pFieldName)
static bool writeVisible (void *obj, StringTableEntry pFieldName)
 Render visibility.
static bool writeBlendMode (void *obj, StringTableEntry pFieldName)
 Render blending.
static bool writeSrcBlendFactor (void *obj, StringTableEntry pFieldName)
static bool writeDstBlendFactor (void *obj, StringTableEntry pFieldName)
static bool writeBlendColor (void *obj, StringTableEntry pFieldName)
static bool writeAlphaTest (void *obj, StringTableEntry pFieldName)
static bool writeSortPoint (void *obj, StringTableEntry pFieldName)
 Render sorting.
static bool writeRenderGroup (void *obj, StringTableEntry pFieldName)
static bool writeUseInputEvents (void *obj, StringTableEntry pFieldName)
 Input events.
static bool writePickingAllowed (void *obj, StringTableEntry pFieldName)
 Picking.
static bool writeUpdateCallback (void *obj, StringTableEntry pFieldName)
 Script callbacks.
static bool writeCollisionCallback (void *obj, StringTableEntry pFieldName)
static bool writeSleepingCallback (void *obj, StringTableEntry pFieldName)
static bool setScene (void *obj, const char *data)
 Scene.
static bool writeScene (void *obj, StringTableEntry pFieldName)
Static Protected Member Functions inherited from SimObject
static bool setClass (void *obj, const char *data)
static bool setSuperClass (void *obj, const char *data)
static bool writeObjectName (void *obj, StringTableEntry pFieldName)
static bool writeCanSaveDynamicFields (void *obj, StringTableEntry pFieldName)
static bool writeInternalName (void *obj, StringTableEntry pFieldName)
static bool setParentGroup (void *obj, const char *data)
static bool writeParentGroup (void *obj, StringTableEntry pFieldName)
static bool writeSuperclass (void *obj, StringTableEntry pFieldName)
static bool writeClass (void *obj, StringTableEntry pFieldName)
static bool setProtectedName (void *obj, const char *data)
static const char * getProtectedName (void *obj, const char *data)
static SimObject::NotifyallocNotify ()
 Get a free Notify structure.
static void freeNotify (SimObject::Notify *)
 Mark a Notify structure as free.
static void addGroup (const char *in_pGroupname, const char *in_pGroupDocs=NULL)
static void endGroup (const char *in_pGroupname)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::WriteDataNotify in_writeDataFn, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, const char *in_pFieldDocs)
static void addField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::WriteDataNotify in_writeDataFn, const char *in_pFieldDocs)
static void addFieldV (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, ConsoleTypeValidator *v, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, AbstractClassRep::WriteDataNotify in_writeDataFn=&defaultProtectedWriteFn, const U32 in_elementCount=1, EnumTable *in_table=NULL, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, const char *in_pFieldDocs=NULL)
static void addProtectedField (const char *in_pFieldname, const U32 in_fieldType, const dsize_t in_fieldOffset, AbstractClassRep::SetDataNotify in_setDataFn, AbstractClassRep::GetDataNotify in_getDataFn=&defaultProtectedGetFn, AbstractClassRep::WriteDataNotify in_writeDataFn=&defaultProtectedWriteFn, const char *in_pFieldDocs=NULL)
static void addDepricatedField (const char *fieldName)
static bool removeField (const char *in_pFieldname)

Protected Attributes

SimObjectPtr< ScenempScene
 Scene.
SimObjectPtr< ScenempTargetScene
F32 mLifetime
 Lifetime.
bool mLifetimeActive
U32 mSceneLayer
 Scene layers.
U32 mSceneLayerMask
F32 mSceneLayerDepth
U32 mSceneGroup
 Scene groups.
U32 mSceneGroupMask
Vector2 mSize
 Area.
bool mAutoSizing
b2AABB mPreTickAABB
b2AABB mCurrentAABB
Vector2 mLocalSizeOOBB [4]
Vector2 mRenderOOBB [4]
S32 mWorldProxyId
bool mGrowActive
Vector2 mTargetSize
Vector2 mDeltaSize
Vector2 mPreTickPosition
 Position / Angle.
F32 mPreTickAngle
Vector2 mRenderPosition
F32 mRenderAngle
bool mSpatialDirty
Vector2 mLastCheckedPosition
Vector2 mTargetPosition
bool mTargetPositionActive
F32 mDistanceToTarget
F32 mTargetPositionMargin
bool mTargetPositionFound
bool mSnapToTargetPosition
bool mStopAtTargetPosition
b2Body * mpBody
 Body.
b2BodyDef mBodyDefinition
U32 mWorldQueryKey
U32 mCollisionLayerMask
 Collision control.
U32 mCollisionGroupMask
bool mCollisionSuppress
bool mCollisionOneWay
b2FixtureDef mDefaultFixture
bool mGatherContacts
Scene::typeContactVectormpCurrentContacts
typeCollisionFixtureDefVector mCollisionFixtureDefs
 General collision shape access.
typeCollisionFixtureVector mCollisionFixtures
typeAudioHandleVector mAudioHandles
Vector< S32 > mHandleDeletionList
bool mVisible
 Render visibility.
bool mBlendMode
 Render blending.
S32 mSrcBlendFactor
S32 mDstBlendFactor
ColorF mBlendColor
F32 mAlphaTest
bool mFadeActive
FadeToColor mFadeToColor
Vector2 mSortPoint
 Render sorting.
bool mUseInputEvents
 Input events.
bool mUpdateCallback
 Script callbacks.
bool mCollisionCallback
bool mSleepingCallback
bool mLastAwakeState
U32 mDebugMask
 Debug mode.
SceneWindowmpAttachedCamera
 Camera mounting.
Vector< SceneObjectAttachedGUImAttachedCtrls
 GUI attachment.
bool mBeingSafeDeleted
 Safe deletion.
bool mSafeDeleteReady
typeDestroyNotificationVector mDestroyNotifyList
 Destroy notifications.
bool mBatchIsolated
 Miscellaneous.
U32 mSerialiseKey
bool mEditorTickAllowed
bool mPickingAllowed
bool mAlwaysInScope
U32 mRotateToEventId
U32 mSerialId
StringTableEntry mRenderGroup
Protected Attributes inherited from SimComponent
bool mEnabled
Protected Attributes inherited from SimObject
SimObjectId mId
 Id number for this object.
StringTableEntry mIdString
NamespacemNameSpace
U32 mTypeMask
S32 mScriptCallbackGuard
 Whether the object is executing a script callback.
bool mCanSaveFieldDictionary
 true if dynamic fields (added at runtime) should be saved, defaults to true
StringTableEntry mInternalName
 Stores object Internal Name.
StringTableEntry mClassName
 Stores the class name to link script class namespaces.
StringTableEntry mSuperClassName
 Stores super class name to link script class namespaces.

Friends

class Scene
class SceneWindow
class ContactFilter
class WorldQuery
class DebugDraw
class SceneObjectRotateToEvent

Additional Inherited Members

Public Types inherited from BehaviorComponent
typedef Vector< BehaviorPortConnectiontypePortConnectionVector
typedef HashMap< StringTableEntry, typePortConnectionVector * > typeOutputNameConnectionHash
typedef HashMap< SimObjectId, typeOutputNameConnectionHash * > typeInstanceConnectionHash
Public Types inherited from SimObject
enum  WriteFlags { SelectedOnly = BIT(0) }
enum  CopyFieldsFlags { CopyFields_SkipName = BIT(0) , CopyFields_SkipParentGroup = BIT(1) , CopyFields_SkipScriptClass = BIT(2) }
 What copyFieldsFrom may be told to leave alone. More...
Public Types inherited from PhysicsProxy
enum  ePhysicsProxyType { PHYSIC_PROXY_INVALID , PHYSIC_PROXY_CUSTOM , PHYSIC_PROXY_SCENEOBJECT , PHYSIC_PROXY_GROUNDBODY }
Public Attributes inherited from BehaviorComponent
typeInstanceConnectionHash mBehaviorConnections
static bool disableNameChanging = false
Protected Types inherited from SimComponent
typedef VectorPtr< SimComponent * >::iterator SimComponentIterator
 Returns a const reference to private mComponentList.
static SimObject::NotifymNotifyFreeList = NULL

Constructor & Destructor Documentation

◆ SceneObject()

◆ ~SceneObject()

~SceneObject ( )
virtual

Member Function Documentation

◆ addAudioHandle()

void addAudioHandle ( AUDIOHANDLE handle)

◆ addCameraMountReference()

void addCameraMountReference ( SceneWindow * pAttachedCamera)
inline

Camera mounting.

◆ addDestroyNotification()

void addDestroyNotification ( SceneObject * pSceneObject)

Destroy notifications.

◆ applyAngularImpulse()

void applyAngularImpulse ( const F32 impulse,
const bool wake = true )

◆ applyForce() [1/2]

void applyForce ( const Vector2 & worldForce,
const bool wake = true )

Force and impulse.

◆ applyForce() [2/2]

void applyForce ( const Vector2 & worldForce,
const Vector2 & worldPoint,
const bool wake = true )

◆ applyLinearImpulse() [1/2]

void applyLinearImpulse ( const Vector2 & worldImpulse,
const bool wake = true )

◆ applyLinearImpulse() [2/2]

void applyLinearImpulse ( const Vector2 & worldImpulse,
const Vector2 & worldPoint,
const bool wake = true )

◆ applyTorque()

void applyTorque ( const F32 torque,
const bool wake = true )

◆ attachGui()

void attachGui ( GuiControl * pGuiControl,
SceneWindow * pSceneWindow,
const bool sizeControl,
const Vector2 offset )

◆ cancelFadeTo()

void cancelFadeTo ( void )
inline

◆ cancelGrowTo()

void cancelGrowTo ( void )
inline

◆ cancelMoveTo()

void cancelMoveTo ( const bool autoStop = true)

◆ cancelRotateTo()

void cancelRotateTo ( const bool autoStop = true)

◆ canPrepareRender()

virtual bool canPrepareRender ( void ) const
inlinevirtual

Render Output.

Reimplemented in CompositeSprite, TextSprite, and WaveComposite.

◆ checkFadeComplete()

void checkFadeComplete ( )
virtual

Reimplemented in Sprite.

◆ clearCollisionShapes()

void clearCollisionShapes ( void )

◆ copyChainCollisionShapeTo()

S32 copyChainCollisionShapeTo ( SceneObject * pSceneObject,
const b2FixtureDef & fixtureDef ) const
protected

◆ copyCircleCollisionShapeTo()

S32 copyCircleCollisionShapeTo ( SceneObject * pSceneObject,
const b2FixtureDef & fixtureDef ) const
protected

◆ copyCollisionShapes()

S32 copyCollisionShapes ( SceneObject * pSceneObject,
const bool clearTargetShapes = true,
const S32 shapeIndex = -1 )

◆ copyEdgeCollisionShapeTo()

S32 copyEdgeCollisionShapeTo ( SceneObject * pSceneObject,
const b2FixtureDef & fixtureDef ) const
protected

◆ copyFrom()

void copyFrom ( SceneObject * pSceneObject,
const bool copyDynamicFields )
virtual

Cloning.

◆ copyPolygonCollisionShapeTo()

S32 copyPolygonCollisionShapeTo ( SceneObject * pSceneObject,
const b2FixtureDef & fixtureDef ) const
protected

◆ copyTo()

void copyTo ( SimObject * object)
virtual

Lifetime.

Scene Layers.

Scene groups.

Area.

Position / Angle.

Body.

Collision control.

Velocities.

Gravity scaling.

Collision shapes.

Render visibility.

Render blending.

Render sorting.

Input events.

Misc.

Debug mode.

Reimplemented from BehaviorComponent.

Reimplemented in CompositeSprite, ParticlePlayer, Scroller, ShapeVector, Sprite, SpriteBase, TextSprite, Trigger, and WaveComposite.

◆ createChainCollisionShape() [1/2]

S32 createChainCollisionShape ( const U32 pointCount,
const b2Vec2 * localPoints )

Chain collision shape creation.

◆ createChainCollisionShape() [2/2]

S32 createChainCollisionShape ( const U32 pointCount,
const b2Vec2 * localPoints,
const bool hasAdjacentLocalPositionStart,
const bool hasAdjacentLocalPositionEnd,
const b2Vec2 & adjacentLocalPositionStart,
const b2Vec2 & adjacentLocalPositionEnd )

◆ createCircleCollisionShape() [1/2]

S32 createCircleCollisionShape ( const F32 radius)

Circle collision shape creation.

◆ createCircleCollisionShape() [2/2]

S32 createCircleCollisionShape ( const F32 radius,
const b2Vec2 & localPosition )

◆ createEdgeCollisionShape() [1/2]

S32 createEdgeCollisionShape ( const b2Vec2 & localPositionStart,
const b2Vec2 & localPositionEnd )

Edge collision shape creation.

◆ createEdgeCollisionShape() [2/2]

S32 createEdgeCollisionShape ( const b2Vec2 & localPositionStart,
const b2Vec2 & localPositionEnd,
const bool hasAdjacentLocalPositionStart,
const bool hasAdjacentLocalPositionEnd,
const b2Vec2 & adjacentLocalPositionStart,
const b2Vec2 & adjacentLocalPositionEnd )

◆ createPolygonBoxCollisionShape() [1/3]

S32 createPolygonBoxCollisionShape ( const F32 width,
const F32 height )

◆ createPolygonBoxCollisionShape() [2/3]

S32 createPolygonBoxCollisionShape ( const F32 width,
const F32 height,
const b2Vec2 & localCentroid )

◆ createPolygonBoxCollisionShape() [3/3]

S32 createPolygonBoxCollisionShape ( const F32 width,
const F32 height,
const b2Vec2 & localCentroid,
const F32 rotation )

◆ createPolygonCollisionShape()

S32 createPolygonCollisionShape ( const U32 pointCount,
const b2Vec2 * localPoints )

Polygon collision shape creation.

◆ DECLARE_CONOBJECT()

DECLARE_CONOBJECT ( SceneObject )

Declare Console Object.

◆ deleteCollisionShape()

void deleteCollisionShape ( const U32 shapeIndex)

General collision shape access.

◆ detachAllGuiControls()

void detachAllGuiControls ( void )

◆ detachGui() [1/2]

void detachGui ( GuiControl * pGuiControl)

◆ detachGui() [2/2]

void detachGui ( void )

◆ dismountCamera()

void dismountCamera ( void )
inline

◆ fadeTo()

bool fadeTo ( const ColorF & targetColor,
const F32 deltaRed,
const F32 deltaGreen,
const F32 deltaBlue,
const F32 deltaAlpha )

◆ getAABB()

b2AABB getAABB ( void ) const
inline

◆ getAABBRectangle()

RectF getAABBRectangle ( void ) const
inline

◆ getActive() [1/2]

const char * getActive ( void * obj,
const char * data )
inlinestaticprotected

◆ getActive() [2/2]

bool getActive ( void ) const
inline

◆ getAlphaTest()

F32 getAlphaTest ( void ) const
inline

◆ getAngle() [1/2]

const char * getAngle ( void * obj,
const char * data )
inlinestaticprotected

◆ getAngle() [2/2]

F32 getAngle ( void ) const
inline

◆ getAngularDamping() [1/2]

const char * getAngularDamping ( void * obj,
const char * data )
inlinestaticprotected

◆ getAngularDamping() [2/2]

F32 getAngularDamping ( void ) const
inline

◆ getAngularVelocity() [1/2]

const char * getAngularVelocity ( void * obj,
const char * data )
inlinestaticprotected

◆ getAngularVelocity() [2/2]

F32 getAngularVelocity ( void ) const
inline

◆ getAutoSizing()

bool getAutoSizing ( void ) const
inline

◆ getAwake() [1/2]

const char * getAwake ( void * obj,
const char * data )
inlinestaticprotected

◆ getAwake() [2/2]

bool getAwake ( void ) const
inline

◆ getBatchIsolated()

virtual bool getBatchIsolated ( void )
inlinevirtual

Implements SceneRenderObject.

◆ getBlendAlpha()

F32 getBlendAlpha ( void ) const
inline

◆ getBlendColor()

const ColorF & getBlendColor ( void ) const
inline

◆ getBlendMode()

bool getBlendMode ( void ) const
inline

◆ getBody()

b2Body * getBody ( void ) const
inline

◆ getBodyType() [1/2]

const char * getBodyType ( void * obj,
const char * data )
inlinestaticprotected

◆ getBodyType() [2/2]

b2BodyType getBodyType ( void ) const
inline

◆ getBodyTypeDescription()

const char * getBodyTypeDescription ( const b2BodyType bodyType)
static

◆ getBodyTypeEnum()

b2BodyType getBodyTypeEnum ( const char * label)
static

◆ getBullet() [1/2]

const char * getBullet ( void * obj,
const char * data )
inlinestaticprotected

◆ getBullet() [2/2]

bool getBullet ( void ) const
inline

◆ getChainCollisionShapeAdjacentEnd()

Vector2 getChainCollisionShapeAdjacentEnd ( const U32 shapeIndex) const

◆ getChainCollisionShapeAdjacentStart()

Vector2 getChainCollisionShapeAdjacentStart ( const U32 shapeIndex) const

◆ getChainCollisionShapeHasAdjacentEnd()

bool getChainCollisionShapeHasAdjacentEnd ( const U32 shapeIndex) const

◆ getChainCollisionShapeHasAdjacentStart()

bool getChainCollisionShapeHasAdjacentStart ( const U32 shapeIndex) const

◆ getChainCollisionShapeLocalPoint()

Vector2 getChainCollisionShapeLocalPoint ( const U32 shapeIndex,
const U32 pointIndex ) const

◆ getChainCollisionShapePointCount()

U32 getChainCollisionShapePointCount ( const U32 shapeIndex) const

Chain collision shape access.

◆ getCircleCollisionShapeLocalPosition()

Vector2 getCircleCollisionShapeLocalPosition ( const U32 shapeIndex) const

◆ getCircleCollisionShapeRadius()

F32 getCircleCollisionShapeRadius ( const U32 shapeIndex) const

Circle collision shape access.

◆ getCollisionCallback()

bool getCollisionCallback ( void ) const
inline

◆ getCollisionChainShape()

const b2ChainShape * getCollisionChainShape ( const U32 shapeIndex) const

◆ getCollisionCircleShape()

const b2CircleShape * getCollisionCircleShape ( const U32 shapeIndex) const

◆ getCollisionEdgeShape()

const b2EdgeShape * getCollisionEdgeShape ( const U32 shapeIndex) const

◆ getCollisionGroupMask()

U32 getCollisionGroupMask ( void ) const
inline

◆ getCollisionGroups()

const char * getCollisionGroups ( void * obj,
const char * data )
inlinestaticprotected

◆ getCollisionLayerMask()

U32 getCollisionLayerMask ( void ) const
inline

◆ getCollisionLayers()

const char * getCollisionLayers ( void * obj,
const char * data )
inlinestaticprotected

◆ getCollisionOneWay()

bool getCollisionOneWay ( void ) const
inline

◆ getCollisionPolygonShape()

const b2PolygonShape * getCollisionPolygonShape ( const U32 shapeIndex) const

◆ getCollisionShapeCount()

U32 getCollisionShapeCount ( void ) const
inline

◆ getCollisionShapeDefinition()

b2FixtureDef getCollisionShapeDefinition ( const U32 shapeIndex) const

◆ getCollisionShapeDensity()

F32 getCollisionShapeDensity ( const U32 shapeIndex) const

◆ getCollisionShapeFriction()

F32 getCollisionShapeFriction ( const U32 shapeIndex) const

◆ getCollisionShapeIndex()

S32 getCollisionShapeIndex ( const b2Fixture * pFixture) const

◆ getCollisionShapeIsSensor()

bool getCollisionShapeIsSensor ( const U32 shapeIndex) const

◆ getCollisionShapeRestitution()

F32 getCollisionShapeRestitution ( const U32 shapeIndex) const

◆ getCollisionShapeType()

b2Shape::Type getCollisionShapeType ( const U32 shapeIndex) const

◆ getCollisionShapeTypeDescription()

const char * getCollisionShapeTypeDescription ( const b2Shape::Type collisionShapeType)
static

◆ getCollisionShapeTypeEnum()

b2Shape::Type getCollisionShapeTypeEnum ( const char * label)
static

◆ getCollisionSuppress()

bool getCollisionSuppress ( void ) const
inline

◆ getCurrentContactCount()

U32 getCurrentContactCount ( void ) const
inline

◆ getCurrentContacts()

const Scene::typeContactVector * getCurrentContacts ( void ) const
inline

◆ getDebugMask()

U32 getDebugMask ( void ) const
inline

◆ getDefaultDensity()

F32 getDefaultDensity ( void ) const
inline

◆ getDefaultFriction()

F32 getDefaultFriction ( void ) const
inline

◆ getDefaultRestitution()

F32 getDefaultRestitution ( void ) const
inline

◆ getDstBlendFactor()

S32 getDstBlendFactor ( void ) const
inline

◆ getDstBlendFactorDescription()

const char * getDstBlendFactorDescription ( const GLenum factor)
static

◆ getDstBlendFactorEnum()

S32 getDstBlendFactorEnum ( const char * label)
static

◆ getEdgeCollisionShapeAdjacentEnd()

Vector2 getEdgeCollisionShapeAdjacentEnd ( const U32 shapeIndex) const

◆ getEdgeCollisionShapeAdjacentStart()

Vector2 getEdgeCollisionShapeAdjacentStart ( const U32 shapeIndex) const

◆ getEdgeCollisionShapeHasAdjacentEnd()

bool getEdgeCollisionShapeHasAdjacentEnd ( const U32 shapeIndex) const

◆ getEdgeCollisionShapeHasAdjacentStart()

bool getEdgeCollisionShapeHasAdjacentStart ( const U32 shapeIndex) const

◆ getEdgeCollisionShapeLocalPositionEnd()

Vector2 getEdgeCollisionShapeLocalPositionEnd ( const U32 shapeIndex) const

◆ getEdgeCollisionShapeLocalPositionStart()

Vector2 getEdgeCollisionShapeLocalPositionStart ( const U32 shapeIndex) const

Edge collision shape access.

◆ getFixedAngle() [1/2]

const char * getFixedAngle ( void * obj,
const char * data )
inlinestaticprotected

◆ getFixedAngle() [2/2]

bool getFixedAngle ( void ) const
inline

◆ getGatherContacts()

bool getGatherContacts ( void ) const
inline

◆ getGlobalSceneObjectCount()

U32 getGlobalSceneObjectCount ( void )
static

◆ getGravityScale() [1/2]

const char * getGravityScale ( void * obj,
const char * data )
inlinestaticprotected

◆ getGravityScale() [2/2]

F32 getGravityScale ( void ) const
inline

◆ getHalfSize()

Vector2 getHalfSize ( void ) const
inline

◆ getInertia()

F32 getInertia ( void ) const
inline

◆ getIsAlwaysInScope()

bool getIsAlwaysInScope ( void ) const
inline

◆ getIsEditorTickAllowed()

bool getIsEditorTickAllowed ( void ) const
inline

◆ getIsPointInCollisionShape()

bool getIsPointInCollisionShape ( const U32 shapeIndex,
const Vector2 & worldPoint )

◆ getIsPointInOOBB()

bool getIsPointInOOBB ( const Vector2 & worldPoint)

◆ getLifetime()

F32 getLifetime ( void ) const
inline

◆ getLinearDamping() [1/2]

const char * getLinearDamping ( void * obj,
const char * data )
inlinestaticprotected

◆ getLinearDamping() [2/2]

F32 getLinearDamping ( void ) const
inline

◆ getLinearVelocity() [1/2]

const char * getLinearVelocity ( void * obj,
const char * data )
inlinestaticprotected

◆ getLinearVelocity() [2/2]

Vector2 getLinearVelocity ( void ) const
inline

◆ getLinearVelocityFromLocalPoint()

Vector2 getLinearVelocityFromLocalPoint ( const Vector2 & localPoint)
inline

◆ getLinearVelocityFromWorldPoint()

Vector2 getLinearVelocityFromWorldPoint ( const Vector2 & worldPoint)
inline

◆ getLocalCenter()

Vector2 getLocalCenter ( void ) const
inline

◆ getLocalPoint()

Vector2 getLocalPoint ( const Vector2 & worldPoint)

◆ getLocalSizedOOBB()

const b2Vec2 * getLocalSizedOOBB ( void ) const
inline

◆ getLocalVector()

Vector2 getLocalVector ( const Vector2 & worldVector)

◆ getMass()

F32 getMass ( void ) const
inline

◆ getPhysicsProxyType()

virtual ePhysicsProxyType getPhysicsProxyType ( void ) const
inlinevirtual

Body.

Implements PhysicsProxy.

◆ getPickingAllowed()

bool getPickingAllowed ( void ) const
inline

◆ getPolygonCollisionShapeLocalPoint()

Vector2 getPolygonCollisionShapeLocalPoint ( const U32 shapeIndex,
const U32 pointIndex ) const

◆ getPolygonCollisionShapePointCount()

U32 getPolygonCollisionShapePointCount ( const U32 shapeIndex) const

Polygon collision shape access.

◆ getPosition() [1/2]

const char * getPosition ( void * obj,
const char * data )
inlinestaticprotected

◆ getPosition() [2/2]

Vector2 getPosition ( void ) const
inline

◆ getRenderAngle()

F32 getRenderAngle ( void ) const
inline

◆ getRenderGroup()

StringTableEntry getRenderGroup ( void ) const
inline

◆ getRenderOOBB()

const b2Vec2 * getRenderOOBB ( void ) const
inline

◆ getRenderPosition()

Vector2 getRenderPosition ( void ) const
inline

◆ getRenderTransform()

b2Transform getRenderTransform ( void ) const
inline

◆ getSafeDelete()

bool getSafeDelete ( void ) const
inline

◆ getScene()

Scene *const getScene ( void ) const
inline

◆ getSceneGroup()

U32 getSceneGroup ( void ) const
inline

◆ getSceneGroupMask()

U32 getSceneGroupMask ( void ) const
inline

◆ getSceneLayer()

U32 getSceneLayer ( void ) const
inline

◆ getSceneLayerDepth()

F32 getSceneLayerDepth ( void ) const
inline

◆ getSceneLayerMask()

U32 getSceneLayerMask ( void ) const
inline

◆ getSceneTime()

F32 getSceneTime ( void ) const
inline

◆ getSerialId()

U32 getSerialId ( void ) const
inline

◆ getSize()

Vector2 getSize ( void ) const
inline

◆ getSleepingAllowed() [1/2]

const char * getSleepingAllowed ( void * obj,
const char * data )
inlinestaticprotected

◆ getSleepingAllowed() [2/2]

bool getSleepingAllowed ( void ) const
inline

◆ getSleepingCallback()

bool getSleepingCallback ( void ) const
inline

◆ getSortPoint()

const Vector2 & getSortPoint ( void ) const
inline

◆ getSound()

U32 getSound ( S32 index)

◆ getSoundsCount()

S32 getSoundsCount ( void )

◆ getSpatialDirty()

bool getSpatialDirty ( void ) const
inlineprotected

◆ getSrcBlendFactor()

S32 getSrcBlendFactor ( void ) const
inline

◆ getSrcBlendFactorDescription()

const char * getSrcBlendFactorDescription ( const GLenum factor)
static

◆ getSrcBlendFactorEnum()

S32 getSrcBlendFactorEnum ( const char * label)
static

◆ getTransform()

b2Transform getTransform ( void ) const
inline

◆ getUpdateCallback()

bool getUpdateCallback ( void ) const
inline

◆ getUseInputEvents()

bool getUseInputEvents ( void ) const
inline

◆ getVisible()

bool getVisible ( void ) const
inline

◆ getWorldCenter()

Vector2 getWorldCenter ( void ) const
inline

◆ getWorldPoint()

Vector2 getWorldPoint ( const Vector2 & localPoint)

◆ getWorldProxy()

S32 getWorldProxy ( void ) const
inline

◆ getWorldQueryKey()

U32 getWorldQueryKey ( void ) const
inline

◆ getWorldVector()

Vector2 getWorldVector ( const Vector2 & localVector)

◆ growTo()

bool growTo ( const Vector2 & targetSize,
const Vector2 & deltaSize )

◆ initializeContactGathering()

void initializeContactGathering ( void )
protected

Contact processing.

◆ initPersistFields()

void initPersistFields ( )
static

Lifetime.

Scene Layers.

Area.

Position / Angle.

Body.

Collision control.

Velocities.

Gravity scaling.

Render visibility.

Render blending.

Render sorting.

Input events.

Scene.

◆ integrateObject()

void integrateObject ( const F32 totalTime,
const F32 elapsedTime,
DebugStats * pDebugStats )
virtual

◆ interpolateObject()

void interpolateObject ( const F32 timeDelta)
virtual

◆ isBatchRendered()

virtual bool isBatchRendered ( void )
inlinevirtual

Implements SceneRenderObject.

Reimplemented in ShapeVector.

◆ isBeingDeleted()

bool isBeingDeleted ( void ) const
inline

◆ isFadeToComplete()

bool isFadeToComplete ( void ) const
inline

◆ isGrowToComplete()

bool isGrowToComplete ( void ) const
inline

◆ isMoveToComplete()

bool isMoveToComplete ( void ) const
inline

◆ isRotateToComplete()

bool isRotateToComplete ( void ) const
inline

◆ moveTo()

bool moveTo ( const Vector2 & targetWorldPoint,
const F32 speed,
const bool autoStop = true,
const bool snapToTarget = true,
const F32 margin = 0.1f )

Move/Rotate to.

◆ notifyComponentsAddToScene()

void notifyComponentsAddToScene ( void )

Component notifications.

◆ notifyComponentsRemoveFromScene()

void notifyComponentsRemoveFromScene ( void )

◆ notifyComponentsUpdate()

void notifyComponentsUpdate ( void )

◆ onAdd()

bool onAdd ( void )
virtual

Engine.

Reimplemented from BehaviorComponent.

Reimplemented in CompositeSprite, LightObject, Scroller, ShapeVector, TextSprite, and Trigger.

◆ onBeginCollision()

void onBeginCollision ( const TickContact & tickContact)
virtual

Reimplemented in Trigger.

◆ onDestroyNotify()

void onDestroyNotify ( SceneObject * pSceneObject)
virtual

◆ onEndCollision()

void onEndCollision ( const TickContact & tickContact)
virtual

Reimplemented in Trigger.

◆ onInputEvent()

bool onInputEvent ( StringTableEntry name,
const GuiEvent & event,
const Vector2 & worldMousePoint )
virtual

◆ OnRegisterScene()

void OnRegisterScene ( Scene * pScene)
protectedvirtual

Scene (un)registering.

Reimplemented in LightObject, and ParticlePlayer.

◆ onRemove()

void onRemove ( )
virtual

Called when the object is removed from the sim.

Reimplemented from BehaviorComponent.

Reimplemented in CompositeSprite, LightObject, Scroller, ShapeVector, and TextSprite.

◆ onTamlCustomRead()

void onTamlCustomRead ( const TamlCustomNodes & customNodes)
protectedvirtual

Called during the reading of the object to allow custom properties to be read.

Reimplemented from BehaviorComponent.

Reimplemented in CompositeSprite.

◆ onTamlCustomWrite()

void onTamlCustomWrite ( TamlCustomNodes & customNodes)
protectedvirtual

Taml callbacks.

Reimplemented from BehaviorComponent.

Reimplemented in CompositeSprite.

◆ OnUnregisterScene()

void OnUnregisterScene ( Scene * pScene)
protectedvirtual

Reimplemented in LightObject, and ParticlePlayer.

◆ packUpdate()

U32 packUpdate ( NetConnection * conn,
U32 mask,
BitStream * stream )
virtual

Networking.

◆ postIntegrate()

void postIntegrate ( const F32 totalTime,
const F32 elapsedTime,
DebugStats * pDebugStats )
virtual

◆ preIntegrate()

void preIntegrate ( const F32 totalTime,
const F32 elapsedTime,
DebugStats * pDebugStats )
virtual

Integration.

Reimplemented in CompositeSprite, ParticlePlayer, Path, Trigger, and WaveComposite.

◆ processDestroyNotifications()

void processDestroyNotifications ( void )

◆ processEffect()

F32 processEffect ( const F32 current,
const F32 target,
const F32 rate )
protected

◆ refreshsources()

void refreshsources ( )

◆ removeCameraMountReference()

void removeCameraMountReference ( void )
inline

◆ removeDestroyNotification()

void removeDestroyNotification ( SceneObject * pSceneObject)

◆ resetBlendOptions()

void resetBlendOptions ( void )
static

◆ resetTickSpatials()

void resetTickSpatials ( const bool resize = false)
protected

Ticking.

◆ rotateTo()

bool rotateTo ( const F32 targetAngle,
const F32 speed,
const bool autoStop = true,
const bool warpToTarget = true )

◆ safeDelete()

void safeDelete ( void )
virtual

Reimplemented in LightObject, and ParticlePlayer.

◆ sceneObjectLayerDepthSort()

S32 QSORT_CALLBACK sceneObjectLayerDepthSort ( const void * a,
const void * b )
staticprotected

◆ scenePrepareRender()

virtual void scenePrepareRender ( const SceneRenderState * pSceneRenderState,
SceneRenderQueue * pSceneRenderQueue )
inlinevirtual

Implements SceneRenderObject.

Reimplemented in CompositeSprite, TextSprite, and WaveComposite.

◆ sceneRender()

virtual void sceneRender ( const SceneRenderState * pSceneRenderState,
const SceneRenderRequest * pSceneRenderRequest,
BatchRender * pBatchRenderer )
inlinevirtual

◆ sceneRenderFallback()

void sceneRenderFallback ( const SceneRenderState * pSceneRenderState,
const SceneRenderRequest * pSceneRenderRequest,
BatchRender * pBatchRenderer )
virtual

Implements SceneRenderObject.

◆ sceneRenderOverlay()

void sceneRenderOverlay ( const SceneRenderState * pSceneRenderState)
virtual

Reimplemented in ParticlePlayer.

◆ scriptThis()

const char * scriptThis ( void ) const
inline

Miscellaneous.

◆ setActive() [1/2]

void setActive ( const bool active)
inline

◆ setActive() [2/2]

bool setActive ( void * obj,
const char * data )
inlinestaticprotected

◆ setAlphaTest()

void setAlphaTest ( const F32 alpha)
inline

◆ setAngle() [1/2]

void setAngle ( const F32 radians)
virtual

Reimplemented in Scroller.

◆ setAngle() [2/2]

bool setAngle ( void * obj,
const char * data )
inlinestaticprotected

◆ setAngularDamping() [1/2]

void setAngularDamping ( const F32 damping)
inline

◆ setAngularDamping() [2/2]

bool setAngularDamping ( void * obj,
const char * data )
inlinestaticprotected

◆ setAngularVelocity() [1/2]

void setAngularVelocity ( const F32 velocity)
inline

◆ setAngularVelocity() [2/2]

bool setAngularVelocity ( void * obj,
const char * data )
inlinestaticprotected

◆ setArea()

void setArea ( const Vector2 & corner1,
const Vector2 & corner2 )
virtual

Area.

◆ setAwake() [1/2]

void setAwake ( const bool awake)
inline

◆ setAwake() [2/2]

bool setAwake ( void * obj,
const char * data )
inlinestaticprotected

◆ setBatchIsolated()

void setBatchIsolated ( const bool batchIsolated)
inline

Render batching.

◆ setBlendAlpha()

void setBlendAlpha ( const F32 alpha)
inline

◆ setBlendColor()

void setBlendColor ( const ColorF & blendColor)
inline

◆ setBlendMode()

void setBlendMode ( const bool blendMode)
inline

Render blending.

◆ setBlendOptions()

void setBlendOptions ( void )

◆ setBodyType() [1/2]

void setBodyType ( const b2BodyType type)

◆ setBodyType() [2/2]

bool setBodyType ( void * obj,
const char * data )
inlinestaticprotected

Body.

◆ setBullet() [1/2]

void setBullet ( const bool bullet)
inline

◆ setBullet() [2/2]

bool setBullet ( void * obj,
const char * data )
inlinestaticprotected

◆ setCollisionAgainst()

void setCollisionAgainst ( const SceneObject * pSceneObject,
const bool clearMasks )

Collision control.

◆ setCollisionCallback()

void setCollisionCallback ( const bool status)
inline

◆ setCollisionGroupMask()

void setCollisionGroupMask ( const U32 groupMask)
inline

◆ setCollisionGroups()

bool setCollisionGroups ( void * obj,
const char * data )
inlinestaticprotected

◆ setCollisionLayerMask()

void setCollisionLayerMask ( const U32 layerMask)
inline

◆ setCollisionLayers()

bool setCollisionLayers ( void * obj,
const char * data )
inlinestaticprotected

◆ setCollisionOneWay()

void setCollisionOneWay ( const bool status)
inline

◆ setCollisionShapeDefinition()

void setCollisionShapeDefinition ( const U32 shapeIndex,
const b2FixtureDef & fixtureDef )

◆ setCollisionShapeDensity()

void setCollisionShapeDensity ( const U32 shapeIndex,
const F32 density )

◆ setCollisionShapeFriction()

void setCollisionShapeFriction ( const U32 shapeIndex,
const F32 friction )

◆ setCollisionShapeIsSensor()

void setCollisionShapeIsSensor ( const U32 shapeIndex,
const bool isSensor )

◆ setCollisionShapeRestitution()

void setCollisionShapeRestitution ( const U32 shapeIndex,
const F32 restitution )

◆ setCollisionSuppress()

void setCollisionSuppress ( const bool status)
inline

◆ setDebugOff()

void setDebugOff ( const U32 debugMask)
inline

◆ setDebugOn()

void setDebugOn ( const U32 debugMask)
inline

Debug mode.

◆ setDefaultDensity() [1/2]

void setDefaultDensity ( const F32 density,
const bool updateShapes = true )

◆ setDefaultDensity() [2/2]

bool setDefaultDensity ( void * obj,
const char * data )
inlinestaticprotected

Collision control.

◆ setDefaultFriction() [1/2]

void setDefaultFriction ( const F32 friction,
const bool updateShapes = true )

◆ setDefaultFriction() [2/2]

bool setDefaultFriction ( void * obj,
const char * data )
inlinestaticprotected

◆ setDefaultRestitution() [1/2]

void setDefaultRestitution ( const F32 restitution,
const bool updateShapes = true )

◆ setDefaultRestitution() [2/2]

bool setDefaultRestitution ( void * obj,
const char * data )
inlinestaticprotected

◆ setDstBlendFactor()

void setDstBlendFactor ( const S32 blendFactor)
inline

◆ setEnabled()

void setEnabled ( const bool enabled)
virtual

Enabled.

Reimplemented from SimComponent.

◆ setFixedAngle() [1/2]

virtual void setFixedAngle ( const bool fixed)
inlinevirtual

Reimplemented in Scroller.

◆ setFixedAngle() [2/2]

bool setFixedAngle ( void * obj,
const char * data )
inlinestaticprotected

◆ setGatherContacts() [1/2]

virtual void setGatherContacts ( const bool gatherContacts)
inlinevirtual

Reimplemented in Trigger.

◆ setGatherContacts() [2/2]

bool setGatherContacts ( void * obj,
const char * data )
inlinestaticprotected

◆ setGravityScale() [1/2]

void setGravityScale ( const F32 scale)
inline

Gravity scaling.

◆ setGravityScale() [2/2]

bool setGravityScale ( void * obj,
const char * data )
inlinestaticprotected

Gravity scaling.

◆ setLifetime() [1/2]

void setLifetime ( const F32 lifetime)

Lifetime.

◆ setLifetime() [2/2]

bool setLifetime ( void * obj,
const char * data )
inlinestaticprotected

Lifetime.

◆ setLinearDamping() [1/2]

void setLinearDamping ( const F32 damping)
inline

◆ setLinearDamping() [2/2]

bool setLinearDamping ( void * obj,
const char * data )
inlinestaticprotected

◆ setLinearVelocity() [1/2]

void setLinearVelocity ( const Vector2 & velocity)
inline

Velocities.

◆ setLinearVelocity() [2/2]

bool setLinearVelocity ( void * obj,
const char * data )
inlinestaticprotected

Velocities.

◆ setPickingAllowed()

void setPickingAllowed ( const bool pickingAllowed)
inline

◆ setPosition() [1/2]

void setPosition ( const Vector2 & position)
virtual

Position / Angle.

◆ setPosition() [2/2]

bool setPosition ( void * obj,
const char * data )
inlinestaticprotected

Position / Angle.

◆ setRenderGroup()

void setRenderGroup ( const char * pRenderGroup)
inline

◆ setSafeDelete()

void setSafeDelete ( const bool status)
inline

Safe deletion.

◆ setScene()

bool setScene ( void * obj,
const char * data )
inlinestaticprotected

◆ setSceneGroup() [1/2]

void setSceneGroup ( const U32 sceneGroup)

Scene groups.

◆ setSceneGroup() [2/2]

bool setSceneGroup ( void * obj,
const char * data )
inlinestaticprotected

Scene groups.

◆ setSceneLayer() [1/2]

void setSceneLayer ( const U32 sceneLayer)

Scene layers.

◆ setSceneLayer() [2/2]

bool setSceneLayer ( void * obj,
const char * data )
inlinestaticprotected

Scene layers.

◆ setSceneLayerDepth() [1/2]

void setSceneLayerDepth ( const F32 order)
inline

Scene Layer depth.

◆ setSceneLayerDepth() [2/2]

bool setSceneLayerDepth ( void * obj,
const char * data )
inlinestaticprotected

◆ setSceneLayerDepthBack()

bool setSceneLayerDepthBack ( void )

◆ setSceneLayerDepthBackward()

bool setSceneLayerDepthBackward ( void )

◆ setSceneLayerDepthForward()

bool setSceneLayerDepthForward ( void )

◆ setSceneLayerDepthFront()

bool setSceneLayerDepthFront ( void )

◆ setSize() [1/3]

void setSize ( const F32 width,
const F32 height )
inline

◆ setSize() [2/3]

void setSize ( const Vector2 & size)
virtual

Reimplemented in ShapeVector.

◆ setSize() [3/3]

bool setSize ( void * obj,
const char * data )
inlinestaticprotected

Area.

◆ setSleepingAllowed() [1/2]

void setSleepingAllowed ( const bool allowed)
inline

◆ setSleepingAllowed() [2/2]

bool setSleepingAllowed ( void * obj,
const char * data )
inlinestaticprotected

◆ setSleepingCallback()

void setSleepingCallback ( bool status)
inline

◆ setSortPoint()

void setSortPoint ( const Vector2 & pt)
inline

Render sorting.

◆ setSrcBlendFactor()

void setSrcBlendFactor ( const S32 blendFactor)
inline

◆ setUpdateCallback()

void setUpdateCallback ( bool status)
inline

◆ setUseInputEvents()

void setUseInputEvents ( bool mouseStatus)
inline

Input events.

◆ setVisible()

void setVisible ( const bool status)
inline

Render visibility.

◆ setWorldQueryKey()

void setWorldQueryKey ( const U32 key)
inline

◆ shouldRender()

virtual bool shouldRender ( void ) const
inlinevirtual

◆ unpackUpdate()

void unpackUpdate ( NetConnection * conn,
BitStream * stream )
virtual

◆ updateAttachedGui()

void updateAttachedGui ( void )
inline

◆ updateBlendColor()

void updateBlendColor ( const F32 elapsedTime)
virtual

Reimplemented in Sprite.

◆ updateFadeColor()

void updateFadeColor ( ColorF & color,
FadeToColor & target,
const F32 elapsedTime )
protected

◆ updateLifetime()

void updateLifetime ( const F32 elapsedTime)

◆ updateSize()

void updateSize ( const F32 elapsedTime)

◆ updateTargetPosition()

void updateTargetPosition ( void )

◆ validRender()

virtual bool validRender ( void ) const
inlinevirtual

◆ writeActive()

bool writeActive ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeAlphaTest()

bool writeAlphaTest ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeAngle()

bool writeAngle ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeAngularDamping()

bool writeAngularDamping ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeAngularVelocity()

bool writeAngularVelocity ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeAwake()

bool writeAwake ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeBlendColor()

bool writeBlendColor ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeBlendMode()

bool writeBlendMode ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Render blending.

◆ writeBodyType()

bool writeBodyType ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeBullet()

bool writeBullet ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeCollisionCallback()

bool writeCollisionCallback ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeCollisionGroups()

bool writeCollisionGroups ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeCollisionLayers()

bool writeCollisionLayers ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeCollisionOneWay()

bool writeCollisionOneWay ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeCollisionSuppress()

bool writeCollisionSuppress ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeDefaultDensity()

bool writeDefaultDensity ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeDefaultFriction()

bool writeDefaultFriction ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeDefaultRestitution()

bool writeDefaultRestitution ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeDstBlendFactor()

bool writeDstBlendFactor ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeField()

bool writeField ( StringTableEntry fieldname,
const char * value )
virtual

Determine whether or not a field should be written.

Parameters
fieldnameThe name of the field being written.
valueThe value of the field.

Reimplemented from SimComponent.

◆ writeFixedAngle()

bool writeFixedAngle ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeGatherContacts()

bool writeGatherContacts ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeGravityScale()

bool writeGravityScale ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeLifetime()

bool writeLifetime ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeLinearDamping()

bool writeLinearDamping ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeLinearVelocity()

bool writeLinearVelocity ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writePickingAllowed()

bool writePickingAllowed ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Picking.

◆ writePosition()

bool writePosition ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeRenderGroup()

bool writeRenderGroup ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeScene()

bool writeScene ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSceneGroup()

bool writeSceneGroup ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSceneLayer()

bool writeSceneLayer ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSceneLayerDepth()

bool writeSceneLayerDepth ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSize()

bool writeSize ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSleepingAllowed()

bool writeSleepingAllowed ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSleepingCallback()

bool writeSleepingCallback ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeSortPoint()

bool writeSortPoint ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Render sorting.

◆ writeSrcBlendFactor()

bool writeSrcBlendFactor ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeUpdateCallback()

bool writeUpdateCallback ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Script callbacks.

◆ writeUseInputEvents()

bool writeUseInputEvents ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Input events.

◆ writeVisible()

bool writeVisible ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Render visibility.

◆ ContactFilter

friend class ContactFilter
friend

◆ DebugDraw

friend class DebugDraw
friend

◆ Scene

friend class Scene
friend

◆ SceneObjectRotateToEvent

friend class SceneObjectRotateToEvent
friend

◆ SceneWindow

friend class SceneWindow
friend

◆ WorldQuery

friend class WorldQuery
friend

Member Data Documentation

◆ mAlphaTest

F32 mAlphaTest
protected

◆ mAlwaysInScope

bool mAlwaysInScope
protected

◆ mAttachedCtrls

Vector<SceneObjectAttachedGUI> mAttachedCtrls
protected

GUI attachment.

◆ mAudioHandles

typeAudioHandleVector mAudioHandles
protected

◆ mAutoSizing

bool mAutoSizing
protected

◆ mBatchIsolated

bool mBatchIsolated
protected

Miscellaneous.

◆ mBeingSafeDeleted

bool mBeingSafeDeleted
protected

Safe deletion.

◆ mBlendColor

ColorF mBlendColor
protected

◆ mBlendMode

bool mBlendMode
protected

Render blending.

◆ mBodyDefinition

b2BodyDef mBodyDefinition
protected

◆ mCollisionCallback

bool mCollisionCallback
protected

◆ mCollisionFixtureDefs

typeCollisionFixtureDefVector mCollisionFixtureDefs
protected

General collision shape access.

◆ mCollisionFixtures

typeCollisionFixtureVector mCollisionFixtures
protected

◆ mCollisionGroupMask

U32 mCollisionGroupMask
protected

◆ mCollisionLayerMask

U32 mCollisionLayerMask
protected

Collision control.

◆ mCollisionOneWay

bool mCollisionOneWay
protected

◆ mCollisionSuppress

bool mCollisionSuppress
protected

◆ mCurrentAABB

b2AABB mCurrentAABB
protected

◆ mDebugMask

U32 mDebugMask
protected

Debug mode.

◆ mDefaultFixture

b2FixtureDef mDefaultFixture
protected

◆ mDeltaSize

Vector2 mDeltaSize
protected

◆ mDestroyNotifyList

typeDestroyNotificationVector mDestroyNotifyList
protected

Destroy notifications.

◆ mDistanceToTarget

F32 mDistanceToTarget
protected

◆ mDstBlendFactor

S32 mDstBlendFactor
protected

◆ mEditorTickAllowed

bool mEditorTickAllowed
protected

◆ mFadeActive

bool mFadeActive
protected

◆ mFadeToColor

FadeToColor mFadeToColor
protected

◆ mGatherContacts

bool mGatherContacts
protected

◆ mGrowActive

bool mGrowActive
protected

◆ mHandleDeletionList

Vector<S32> mHandleDeletionList
protected

◆ mLastAwakeState

bool mLastAwakeState
protected

◆ mLastCheckedPosition

Vector2 mLastCheckedPosition
protected

◆ mLifetime

F32 mLifetime
protected

Lifetime.

◆ mLifetimeActive

bool mLifetimeActive
protected

◆ mLocalSizeOOBB

Vector2 mLocalSizeOOBB[4]
protected

◆ mpAttachedCamera

SceneWindow* mpAttachedCamera
protected

Camera mounting.

◆ mpBody

b2Body* mpBody
protected

Body.

◆ mpCurrentContacts

Scene::typeContactVector* mpCurrentContacts
protected

◆ mPickingAllowed

bool mPickingAllowed
protected

◆ mPreTickAABB

b2AABB mPreTickAABB
protected

◆ mPreTickAngle

F32 mPreTickAngle
protected

◆ mPreTickPosition

Vector2 mPreTickPosition
protected

Position / Angle.

◆ mpScene

SimObjectPtr<Scene> mpScene
protected

◆ mpTargetScene

SimObjectPtr<Scene> mpTargetScene
protected

Target Scene. NOTE: Unfortunately this is required as the scene can be set via a field which occurs before the object is registered with the simulation therefore any simulation related functionality cannot be used such as TorqueScript callbacks.

◆ mRenderAngle

F32 mRenderAngle
protected

◆ mRenderGroup

StringTableEntry mRenderGroup
protected

◆ mRenderOOBB

Vector2 mRenderOOBB[4]
protected

◆ mRenderPosition

Vector2 mRenderPosition
protected

◆ mRotateToEventId

U32 mRotateToEventId
protected

◆ mSafeDeleteReady

bool mSafeDeleteReady
protected

◆ mSceneGroup

U32 mSceneGroup
protected

Scene groups.

◆ mSceneGroupMask

U32 mSceneGroupMask
protected

◆ mSceneLayer

U32 mSceneLayer
protected

Scene layers.

◆ mSceneLayerDepth

F32 mSceneLayerDepth
protected

◆ mSceneLayerMask

U32 mSceneLayerMask
protected

◆ mSerialId

U32 mSerialId
protected

◆ mSerialiseKey

U32 mSerialiseKey
protected

◆ mSize

Vector2 mSize
protected

Area.

◆ mSleepingCallback

bool mSleepingCallback
protected

◆ mSnapToTargetPosition

bool mSnapToTargetPosition
protected

◆ mSortPoint

Vector2 mSortPoint
protected

Render sorting.

◆ mSpatialDirty

bool mSpatialDirty
protected

◆ mSrcBlendFactor

S32 mSrcBlendFactor
protected

◆ mStopAtTargetPosition

bool mStopAtTargetPosition
protected

◆ mTargetPosition

Vector2 mTargetPosition
protected

◆ mTargetPositionActive

bool mTargetPositionActive
protected

◆ mTargetPositionFound

bool mTargetPositionFound
protected

◆ mTargetPositionMargin

F32 mTargetPositionMargin
protected

◆ mTargetSize

Vector2 mTargetSize
protected

◆ mUpdateCallback

bool mUpdateCallback
protected

Script callbacks.

◆ mUseInputEvents

bool mUseInputEvents
protected

Input events.

◆ mVisible

bool mVisible
protected

Render visibility.

◆ mWorldProxyId

S32 mWorldProxyId
protected

◆ mWorldQueryKey

U32 mWorldQueryKey
protected

The documentation for this class was generated from the following files: