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

#include <Scene.h>

Inheritance diagram for Scene:

Public Types

enum  DebugOption {
  SCENE_DEBUG_INVALID , SCENE_DEBUG_METRICS = BIT(0) , SCENE_DEBUG_FPS_METRICS = BIT(1) , SCENE_DEBUG_CONTROLLERS = BIT(2) ,
  SCENE_DEBUG_JOINTS = BIT(3) , SCENE_DEBUG_WIREFRAME_RENDER = BIT(4) , SCENE_DEBUG_AUDIO_SOURCES = BIT(5) , SCENE_DEBUG_AABB = BIT(16) ,
  SCENE_DEBUG_OOBB = BIT(17) , SCENE_DEBUG_SLEEP = BIT(18) , SCENE_DEBUG_COLLISION_SHAPES = BIT(19) , SCENE_DEBUG_POSITION_AND_COM = BIT(20) ,
  SCENE_DEBUG_SORT_POINTS = BIT(21)
}
 Scene Debug Options. More...
enum  PickMode {
  PICK_INVALID , PICK_ANY , PICK_AABB , PICK_OOBB ,
  PICK_COLLISION
}
 Pick mode. More...
typedef HashMap< S32, b2Joint * > typeJointHash
typedef HashMap< b2Joint *, S32 > typeReverseJointHash
typedef Vector< tDeleteRequesttypeDeleteVector
typedef Vector< TickContacttypeContactVector
typedef HashMap< b2Contact *, TickContacttypeContactHash
typedef Vector< AssetPtr< AssetBase > * > typeAssetPtrVector
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 Member Functions

 Scene ()
virtual ~Scene ()
virtual bool onAdd ()
 Engine.
virtual void onRemove ()
 Called when the object is removed from the sim.
virtual void onDeleteNotify (SimObject *object)
virtual void PreSolve (b2Contact *pContact, const b2Manifold *pOldManifold)
 Contact processing.
virtual void PostSolve (b2Contact *pContact, const b2ContactImpulse *pImpulse)
virtual void BeginContact (b2Contact *pContact)
virtual void EndContact (b2Contact *pContact)
const typeContactHashgetBeginContacts (void) const
const typeContactVectorgetEndContacts (void) const
virtual void processTick ()
 Integration.
virtual void interpolateTick (F32 delta)
virtual void advanceTime (F32 timeDelta)
void sceneRender (const SceneRenderState *pSceneRenderState)
 Render output.
b2World * getWorld (void) const
 World.
WorldQuerygetWorldQuery (const bool clearQuery=false)
b2BlockAllocator * getBlockAllocator (void)
b2Body * getGroundBody (void) const
virtual ePhysicsProxyType getPhysicsProxyType (void) const
void setGravity (const b2Vec2 &gravity)
b2Vec2 getGravity (void)
void setVelocityIterations (const S32 iterations)
S32 getVelocityIterations (void) const
void setPositionIterations (const S32 iterations)
S32 getPositionIterations (void) const
void clearScene (bool deleteObjects=true)
 Scene occupancy.
void addToScene (SceneObject *pSceneObject)
void removeFromScene (SceneObject *pSceneObject)
typeSceneObjectVectorConstRef getSceneObjects (void) const
U32 getSceneObjectCount (void) const
SceneObjectgetSceneObject (const U32 objectIndex) const
U32 getSceneObjects (typeSceneObjectVector &objects) const
U32 getSceneObjects (typeSceneObjectVector &objects, const U32 sceneLayer) const
void mergeScene (const Scene *pScene)
SimSetgetControllers (void)
S32 getAssetPreloadCount (void) const
const AssetPtr< AssetBase > * getAssetPreload (const S32 index) const
void addAssetPreload (const char *pAssetId)
void removeAssetPreload (const char *pAssetId)
void clearAssetPreloads (void)
F32 getSceneTime (void) const
 Scene time.
void setScenePause (bool status)
bool getScenePause (void) const
U32 getJointCount (void) const
 Joint access.
b2JointType getJointType (const S32 jointId)
b2Joint * findJoint (const S32 jointId)
S32 findJointId (b2Joint *pJoint)
S32 createJoint (b2JointDef *pJointDef)
bool deleteJoint (const U32 jointId)
bool hasJoints (SceneObject *pSceneObject)
S32 createDistanceJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA=b2Vec2_zero, const b2Vec2 &localAnchorB=b2Vec2_zero, const F32 length=-1.0f, const F32 frequency=0.0f, const F32 dampingRatio=0.0f, const bool collideConnected=false)
 Distance joint.
void setDistanceJointLength (const U32 jointId, const F32 length)
F32 getDistanceJointLength (const U32 jointId)
void setDistanceJointFrequency (const U32 jointId, const F32 frequency)
F32 getDistanceJointFrequency (const U32 jointId)
void setDistanceJointDampingRatio (const U32 jointId, const F32 dampingRatio)
F32 getDistanceJointDampingRatio (const U32 jointId)
S32 createRopeJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA=b2Vec2_zero, const b2Vec2 &localAnchorB=b2Vec2_zero, const F32 maxLength=-1.0f, const bool collideConnected=false)
 Rope joint.
void setRopeJointMaxLength (const U32 jointId, const F32 maxLength)
F32 getRopeJointMaxLength (const U32 jointId)
S32 createRevoluteJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA=b2Vec2_zero, const b2Vec2 &localAnchorB=b2Vec2_zero, const bool collideConnected=false)
 Revolute joint.
void setRevoluteJointLimit (const U32 jointId, const bool enableLimit, const F32 lowerAngle, const F32 upperAngle)
bool getRevoluteJointLimit (const U32 jointId, bool &enableLimit, F32 &lowerAngle, F32 &upperAngle)
void setRevoluteJointMotor (const U32 jointId, const bool enableMotor, const F32 motorSpeed=b2_pi, const F32 maxMotorTorque=0.0f)
bool getRevoluteJointMotor (const U32 jointId, bool &enableMotor, F32 &motorSpeed, F32 &maxMotorTorque)
F32 getRevoluteJointAngle (const U32 jointId)
F32 getRevoluteJointSpeed (const U32 jointId)
S32 createWeldJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA=b2Vec2_zero, const b2Vec2 &localAnchorB=b2Vec2_zero, const F32 frequency=0.0f, const F32 dampingRatio=0.0f, const bool collideConnected=false)
 Weld joint.
void setWeldJointFrequency (const U32 jointId, const F32 frequency)
F32 getWeldJointFrequency (const U32 jointId)
void setWeldJointDampingRatio (const U32 jointId, const F32 dampingRatio)
F32 getWeldJointDampingRatio (const U32 jointId)
S32 createWheelJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA, const b2Vec2 &localAnchorB, const b2Vec2 &worldAxis, const bool collideConnected=false)
 Wheel joint.
void setWheelJointMotor (const U32 jointId, const bool enableMotor, const F32 motorSpeed=b2_pi, const F32 maxMotorTorque=0.0f)
bool getWheelJointMotor (const U32 jointId, bool &enableMotor, F32 &motorSpeed, F32 &maxMotorTorque)
void setWheelJointFrequency (const U32 jointId, const F32 frequency)
F32 getWheelJointFrequency (const U32 jointId)
void setWheelJointDampingRatio (const U32 jointId, const F32 dampingRatio)
F32 getWheelJointDampingRatio (const U32 jointId)
S32 createFrictionJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA=b2Vec2_zero, const b2Vec2 &localAnchorB=b2Vec2_zero, const F32 maxForce=0.0f, const F32 maxTorque=0.0f, const bool collideConnected=false)
 Friction joint.
void setFrictionJointMaxForce (const U32 jointId, const F32 maxForce)
F32 getFrictionJointMaxForce (const U32 jointId)
void setFrictionJointMaxTorque (const U32 jointId, const F32 maxTorque)
F32 getFrictionJointMaxTorque (const U32 jointId)
S32 createPrismaticJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA, const b2Vec2 &localAnchorB, const b2Vec2 &worldAxis, const bool collideConnected=false)
 Prismatic joint.
void setPrismaticJointLimit (const U32 jointId, const bool enableLimit, const F32 lowerTranslation, const F32 upperTranslation)
bool getPrismaticJointLimit (const U32 jointId, bool &enableLimit, F32 &lowerTranslation, F32 &upperTranslation)
void setPrismaticJointMotor (const U32 jointId, const bool enableMotor, const F32 motorSpeed=b2_pi, const F32 maxMotorForce=0.0f)
bool getPrismaticJointMotor (const U32 jointId, bool &enableMotor, F32 &motorSpeed, F32 &maxMotorTorque)
S32 createPulleyJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 &localAnchorA, const b2Vec2 &localAnchorB, const b2Vec2 &worldGroundAnchorA, const b2Vec2 &worldGroundAnchorB, const F32 ratio, const F32 lengthA=-1.0f, const F32 lengthB=-1.0f, const bool collideConnected=false)
 Pulley joint.
S32 createTargetJoint (const SceneObject *pSceneObject, const b2Vec2 &worldTarget, const F32 maxForce, const bool useCenterOfMass=false, const F32 frequency=5.0f, const F32 dampingRatio=0.7f, const bool collideConnected=false)
 Target (a.k.a Mouse) joint.
void setTargetJointTarget (const U32 jointId, const b2Vec2 &worldTarget)
b2Vec2 getTargetJointTarget (const U32 jointId)
void setTargetJointMaxForce (const U32 jointId, const F32 maxForce)
F32 getTargetJointMaxForce (const U32 jointId)
void setTargetJointFrequency (const U32 jointId, const F32 frequency)
F32 getTargetJointFrequency (const U32 jointId)
void setTargetJointDampingRatio (const U32 jointId, const F32 dampingRatio)
F32 getTargetJointDampingRatio (const U32 jointId)
S32 createMotorJoint (const SceneObject *pSceneObjectA, const SceneObject *pSceneObjectB, const b2Vec2 linearOffset=b2Vec2_zero, const F32 angularOffset=0.0f, const F32 maxForce=1.0f, const F32 maxTorque=1.0f, const F32 correctionFactor=0.3f, const bool collideConnected=false)
 Motor Joint.
void setMotorJointLinearOffset (const U32 jointId, const b2Vec2 &linearOffset)
b2Vec2 getMotorJointLinearOffset (const U32 jointId)
void setMotorJointAngularOffset (const U32 jointId, const F32 angularOffset)
F32 getMotorJointAngularOffset (const U32 jointId)
void setMotorJointMaxForce (const U32 jointId, const F32 maxForce)
F32 getMotorJointMaxForce (const U32 jointId)
void setMotorJointMaxTorque (const U32 jointId, const F32 maxTorque)
F32 getMotorJointMaxTorque (const U32 jointId)
void setDebugOn (const U32 debugMask)
 Debug and metrics.
void setDebugOff (const U32 debugMask)
U32 getDebugMask (void) const
DebugStatsgetDebugStats (void)
void resetDebugStats (void)
void setDebugSceneObject (SceneObject *pSceneObject)
SceneObjectgetDebugSceneObject (void) const
void setLayerSortMode (const U32 layer, const SceneRenderQueue::RenderSort sortMode)
 Layer sorting.
SceneRenderQueue::RenderSort getLayerSortMode (const U32 layer)
void attachSceneWindow (SceneWindow *pSceneWindow2D)
 Window attachments.
void detachSceneWindow (SceneWindow *pSceneWindow2D)
void detachAllSceneWindows (void)
bool isSceneWindowAttached (SceneWindow *pSceneWindow2D)
SimSetgetAttachedSceneWindows (void)
void addDeleteRequest (SceneObject *pSceneObject)
 Delete requests.
void processDeleteRequests (const bool forceImmediate)
virtual void SayGoodbye (b2Joint *pJoint)
 Destruction listeners.
virtual void SayGoodbye (b2Fixture *pFixture)
virtual SceneObjectcreate (const char *pType)
void setBatchingEnabled (const bool enabled)
 Miscellaneous.
bool getBatchingEnabled (void) const
bool getIsEditorScene (void) const
void setIsEditorScene (bool status)
U32 getSceneIndex (void) const
void setUpdateCallback (const bool callback)
bool getUpdateCallback (void) const
void setRenderCallback (const bool callback)
bool getRenderCallback (void) const
virtual U32 getTamlChildCount (void) const
 Taml children.
virtual SimObjectgetTamlChild (const U32 childIndex) const
 Called when Taml attempts to compile a list of children.
virtual void addTamlChild (SimObject *pSimObject)
 Called when Taml attempts to populate an objects children during a read.
 DECLARE_CONOBJECT (Scene)
 Declare Console Object.
Public Member Functions inherited from BehaviorComponent
 BehaviorComponent ()
virtual ~BehaviorComponent ()
virtual void copyTo (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)
virtual void setEnabled (const bool enabled)
bool isEnabled () const
virtual bool writeField (StringTableEntry fieldname, const char *value)
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 PhysicsProxy
 PhysicsProxy ()
virtual ~PhysicsProxy ()
Public Member Functions inherited from Tickable
 Tickable ()
virtual ~Tickable ()
virtual bool isProcessingTicks () const
virtual void setProcessTicks (bool tick=true)

Static Public Member Functions

static void initPersistFields ()
static U32 getGlobalSceneCount (void)
static SceneRenderRequestcreateDefaultRenderRequest (SceneRenderQueue *pSceneRenderQueue, SceneObject *pSceneObject)
static b2JointType getJointTypeEnum (const char *label)
static const char * getJointTypeDescription (b2JointType jointType)
static PickMode getPickModeEnum (const char *label)
static const char * getPickModeDescription (PickMode pickMode)
static DebugOption getDebugOptionEnum (const char *label)
static const char * getDebugOptionDescription (DebugOption debugOption)
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)
Static Public Member Functions inherited from Tickable
static bool advanceTime (U32 timeDelta)

Public Attributes

DebugDraw mDebugDraw
 Debug drawing.
b2ParticleSystem * mParticleSystem
Public Attributes inherited from BehaviorComponent
typeInstanceConnectionHash mBehaviorConnections

Static Public Attributes

static SimObjectPtr< SceneLoadingScene = NULL
static bool disableNameChanging = false
Static Public Attributes inherited from Tickable
static const U32 smTickShift = 4
 Shift value to control how often Ticks occur.
static const U32 smTickMs = ( 1 << smTickShift )
 Number of milliseconds per tick, 32 in this case.
static const F32 smTickSec = ( F32( Tickable::smTickMs ) / 1000.f )
 Fraction of a second per tick.
static const U32 smTickMask = ( smTickMs - 1 )

Protected Member Functions

virtual void onTamlPreRead (void)
 Taml callbacks.
virtual void onTamlPostRead (const TamlCustomNodes &customNodes)
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.
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 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 bool setGravity (void *obj, const char *data)
 Physics.
static const char * getGravity (void *obj, const char *data)
static bool writeGravity (void *obj, StringTableEntry pFieldName)
static bool writeVelocityIterations (void *obj, StringTableEntry pFieldName)
static bool writePositionIterations (void *obj, StringTableEntry pFieldName)
static bool writeLayerSortMode (void *obj, StringTableEntry pFieldName)
static bool writeUpdateCallback (void *obj, StringTableEntry pFieldName)
static bool writeRenderCallback (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)

Additional Inherited Members

Protected Types inherited from SimComponent
typedef VectorPtr< SimComponent * >::iterator SimComponentIterator
 Returns a const reference to private mComponentList.
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.
static SimObject::NotifymNotifyFreeList = NULL

Detailed Description


Member Typedef Documentation

◆ typeAssetPtrVector

◆ typeContactHash

typedef HashMap<b2Contact*, TickContact> typeContactHash

◆ typeContactVector

◆ typeDeleteVector

◆ typeJointHash

typedef HashMap<S32, b2Joint*> typeJointHash

◆ typeReverseJointHash

typedef HashMap<b2Joint*, S32> typeReverseJointHash

Member Enumeration Documentation

◆ DebugOption

Scene Debug Options.

Enumerator
SCENE_DEBUG_INVALID 
SCENE_DEBUG_METRICS 
SCENE_DEBUG_FPS_METRICS 
SCENE_DEBUG_CONTROLLERS 
SCENE_DEBUG_JOINTS 
SCENE_DEBUG_WIREFRAME_RENDER 
SCENE_DEBUG_AUDIO_SOURCES 
SCENE_DEBUG_AABB 
SCENE_DEBUG_OOBB 
SCENE_DEBUG_SLEEP 
SCENE_DEBUG_COLLISION_SHAPES 
SCENE_DEBUG_POSITION_AND_COM 
SCENE_DEBUG_SORT_POINTS 

◆ PickMode

enum PickMode

Pick mode.

Enumerator
PICK_INVALID 
PICK_ANY 
PICK_AABB 
PICK_OOBB 
PICK_COLLISION 

Constructor & Destructor Documentation

◆ Scene()

Scene ( )

◆ ~Scene()

~Scene ( )
virtual

Member Function Documentation

◆ addAssetPreload()

void addAssetPreload ( const char * pAssetId)

◆ addDeleteRequest()

void addDeleteRequest ( SceneObject * pSceneObject)

Delete requests.

◆ addTamlChild()

void addTamlChild ( SimObject * pSimObject)
virtual

Called when Taml attempts to populate an objects children during a read.

Implements TamlChildren.

◆ addToScene()

void addToScene ( SceneObject * pSceneObject)

◆ advanceTime()

virtual void advanceTime ( F32 timeDelta)
inlinevirtual

This method is called once every frame regardless of the return value of isProcessingTicks and informs the object of the passage of time

Implements Tickable.

◆ attachSceneWindow()

void attachSceneWindow ( SceneWindow * pSceneWindow2D)

Window attachments.

◆ BeginContact()

void BeginContact ( b2Contact * pContact)
virtual

◆ clearAssetPreloads()

void clearAssetPreloads ( void )

◆ clearScene()

void clearScene ( bool deleteObjects = true)

Scene occupancy.

◆ create()

SceneObject * create ( const char * pType)
virtual

◆ createDefaultRenderRequest()

SceneRenderRequest * createDefaultRenderRequest ( SceneRenderQueue * pSceneRenderQueue,
SceneObject * pSceneObject )
static

◆ createDistanceJoint()

S32 createDistanceJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA = b2Vec2_zero,
const b2Vec2 & localAnchorB = b2Vec2_zero,
const F32 length = -1.0f,
const F32 frequency = 0.0f,
const F32 dampingRatio = 0.0f,
const bool collideConnected = false )

Distance joint.

◆ createFrictionJoint()

S32 createFrictionJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA = b2Vec2_zero,
const b2Vec2 & localAnchorB = b2Vec2_zero,
const F32 maxForce = 0.0f,
const F32 maxTorque = 0.0f,
const bool collideConnected = false )

Friction joint.

◆ createJoint()

S32 createJoint ( b2JointDef * pJointDef)

◆ createMotorJoint()

S32 createMotorJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 linearOffset = b2Vec2_zero,
const F32 angularOffset = 0.0f,
const F32 maxForce = 1.0f,
const F32 maxTorque = 1.0f,
const F32 correctionFactor = 0.3f,
const bool collideConnected = false )

Motor Joint.

◆ createPrismaticJoint()

S32 createPrismaticJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA,
const b2Vec2 & localAnchorB,
const b2Vec2 & worldAxis,
const bool collideConnected = false )

Prismatic joint.

◆ createPulleyJoint()

S32 createPulleyJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA,
const b2Vec2 & localAnchorB,
const b2Vec2 & worldGroundAnchorA,
const b2Vec2 & worldGroundAnchorB,
const F32 ratio,
const F32 lengthA = -1.0f,
const F32 lengthB = -1.0f,
const bool collideConnected = false )

Pulley joint.

◆ createRevoluteJoint()

S32 createRevoluteJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA = b2Vec2_zero,
const b2Vec2 & localAnchorB = b2Vec2_zero,
const bool collideConnected = false )

Revolute joint.

◆ createRopeJoint()

S32 createRopeJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA = b2Vec2_zero,
const b2Vec2 & localAnchorB = b2Vec2_zero,
const F32 maxLength = -1.0f,
const bool collideConnected = false )

Rope joint.

◆ createTargetJoint()

S32 createTargetJoint ( const SceneObject * pSceneObject,
const b2Vec2 & worldTarget,
const F32 maxForce,
const bool useCenterOfMass = false,
const F32 frequency = 5.0f,
const F32 dampingRatio = 0.7f,
const bool collideConnected = false )

Target (a.k.a Mouse) joint.

◆ createWeldJoint()

S32 createWeldJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA = b2Vec2_zero,
const b2Vec2 & localAnchorB = b2Vec2_zero,
const F32 frequency = 0.0f,
const F32 dampingRatio = 0.0f,
const bool collideConnected = false )

Weld joint.

◆ createWheelJoint()

S32 createWheelJoint ( const SceneObject * pSceneObjectA,
const SceneObject * pSceneObjectB,
const b2Vec2 & localAnchorA,
const b2Vec2 & localAnchorB,
const b2Vec2 & worldAxis,
const bool collideConnected = false )

Wheel joint.

◆ DECLARE_CONOBJECT()

DECLARE_CONOBJECT ( Scene )

Declare Console Object.

◆ deleteJoint()

bool deleteJoint ( const U32 jointId)

◆ detachAllSceneWindows()

void detachAllSceneWindows ( void )

◆ detachSceneWindow()

void detachSceneWindow ( SceneWindow * pSceneWindow2D)

◆ EndContact()

void EndContact ( b2Contact * pContact)
virtual

◆ findJoint()

b2Joint * findJoint ( const S32 jointId)

◆ findJointId()

S32 findJointId ( b2Joint * pJoint)

◆ getAssetPreload()

const AssetPtr< AssetBase > * getAssetPreload ( const S32 index) const

◆ getAssetPreloadCount()

S32 getAssetPreloadCount ( void ) const
inline

◆ getAttachedSceneWindows()

SimSet & getAttachedSceneWindows ( void )
inline

◆ getBatchingEnabled()

bool getBatchingEnabled ( void ) const
inline

◆ getBeginContacts()

const typeContactHash & getBeginContacts ( void ) const
inline

◆ getBlockAllocator()

b2BlockAllocator * getBlockAllocator ( void )
inline

◆ getControllers()

SimSet * getControllers ( void )
inline

◆ getDebugMask()

U32 getDebugMask ( void ) const
inline

◆ getDebugOptionDescription()

const char * getDebugOptionDescription ( Scene::DebugOption debugOption)
static

◆ getDebugOptionEnum()

Scene::DebugOption getDebugOptionEnum ( const char * label)
static

◆ getDebugSceneObject()

SceneObject * getDebugSceneObject ( void ) const
inline

◆ getDebugStats()

DebugStats & getDebugStats ( void )
inline

◆ getDistanceJointDampingRatio()

F32 getDistanceJointDampingRatio ( const U32 jointId)

◆ getDistanceJointFrequency()

F32 getDistanceJointFrequency ( const U32 jointId)

◆ getDistanceJointLength()

F32 getDistanceJointLength ( const U32 jointId)

◆ getEndContacts()

const typeContactVector & getEndContacts ( void ) const
inline

◆ getFrictionJointMaxForce()

F32 getFrictionJointMaxForce ( const U32 jointId)

◆ getFrictionJointMaxTorque()

F32 getFrictionJointMaxTorque ( const U32 jointId)

◆ getGlobalSceneCount()

U32 getGlobalSceneCount ( void )
static

◆ getGravity() [1/2]

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

◆ getGravity() [2/2]

b2Vec2 getGravity ( void )
inline

◆ getGroundBody()

b2Body * getGroundBody ( void ) const
inline

◆ getIsEditorScene()

bool getIsEditorScene ( void ) const
inline

◆ getJointCount()

U32 getJointCount ( void ) const
inline

Joint access.

◆ getJointType()

b2JointType getJointType ( const S32 jointId)

◆ getJointTypeDescription()

const char * getJointTypeDescription ( b2JointType jointType)
static

◆ getJointTypeEnum()

b2JointType getJointTypeEnum ( const char * label)
static

◆ getLayerSortMode()

SceneRenderQueue::RenderSort getLayerSortMode ( const U32 layer)

◆ getMotorJointAngularOffset()

F32 getMotorJointAngularOffset ( const U32 jointId)

◆ getMotorJointLinearOffset()

b2Vec2 getMotorJointLinearOffset ( const U32 jointId)

◆ getMotorJointMaxForce()

F32 getMotorJointMaxForce ( const U32 jointId)

◆ getMotorJointMaxTorque()

F32 getMotorJointMaxTorque ( const U32 jointId)

◆ getPhysicsProxyType()

virtual ePhysicsProxyType getPhysicsProxyType ( void ) const
inlinevirtual

Implements PhysicsProxy.

◆ getPickModeDescription()

const char * getPickModeDescription ( Scene::PickMode pickMode)
static

◆ getPickModeEnum()

Scene::PickMode getPickModeEnum ( const char * label)
static

◆ getPositionIterations()

S32 getPositionIterations ( void ) const
inline

◆ getPrismaticJointLimit()

bool getPrismaticJointLimit ( const U32 jointId,
bool & enableLimit,
F32 & lowerTranslation,
F32 & upperTranslation )

◆ getPrismaticJointMotor()

bool getPrismaticJointMotor ( const U32 jointId,
bool & enableMotor,
F32 & motorSpeed,
F32 & maxMotorTorque )

◆ getRenderCallback()

bool getRenderCallback ( void ) const
inline

◆ getRevoluteJointAngle()

F32 getRevoluteJointAngle ( const U32 jointId)

◆ getRevoluteJointLimit()

bool getRevoluteJointLimit ( const U32 jointId,
bool & enableLimit,
F32 & lowerAngle,
F32 & upperAngle )

◆ getRevoluteJointMotor()

bool getRevoluteJointMotor ( const U32 jointId,
bool & enableMotor,
F32 & motorSpeed,
F32 & maxMotorTorque )

◆ getRevoluteJointSpeed()

F32 getRevoluteJointSpeed ( const U32 jointId)

◆ getRopeJointMaxLength()

F32 getRopeJointMaxLength ( const U32 jointId)

◆ getSceneIndex()

U32 getSceneIndex ( void ) const
inline

◆ getSceneObject()

SceneObject * getSceneObject ( const U32 objectIndex) const

◆ getSceneObjectCount()

U32 getSceneObjectCount ( void ) const
inline

◆ getSceneObjects() [1/3]

U32 getSceneObjects ( typeSceneObjectVector & objects) const

◆ getSceneObjects() [2/3]

U32 getSceneObjects ( typeSceneObjectVector & objects,
const U32 sceneLayer ) const

◆ getSceneObjects() [3/3]

typeSceneObjectVectorConstRef getSceneObjects ( void ) const
inline

◆ getScenePause()

bool getScenePause ( void ) const
inline

◆ getSceneTime()

F32 getSceneTime ( void ) const
inline

Scene time.

◆ getTamlChild()

SimObject * getTamlChild ( const U32 childIndex) const
virtual

Called when Taml attempts to compile a list of children.

Implements TamlChildren.

◆ getTamlChildCount()

virtual U32 getTamlChildCount ( void ) const
inlinevirtual

Taml children.

Implements TamlChildren.

◆ getTargetJointDampingRatio()

F32 getTargetJointDampingRatio ( const U32 jointId)

◆ getTargetJointFrequency()

F32 getTargetJointFrequency ( const U32 jointId)

◆ getTargetJointMaxForce()

F32 getTargetJointMaxForce ( const U32 jointId)

◆ getTargetJointTarget()

b2Vec2 getTargetJointTarget ( const U32 jointId)

◆ getUpdateCallback()

bool getUpdateCallback ( void ) const
inline

◆ getVelocityIterations()

S32 getVelocityIterations ( void ) const
inline

◆ getWeldJointDampingRatio()

F32 getWeldJointDampingRatio ( const U32 jointId)

◆ getWeldJointFrequency()

F32 getWeldJointFrequency ( const U32 jointId)

◆ getWheelJointDampingRatio()

F32 getWheelJointDampingRatio ( const U32 jointId)

◆ getWheelJointFrequency()

F32 getWheelJointFrequency ( const U32 jointId)

◆ getWheelJointMotor()

bool getWheelJointMotor ( const U32 jointId,
bool & enableMotor,
F32 & motorSpeed,
F32 & maxMotorTorque )

◆ getWorld()

b2World * getWorld ( void ) const
inline

World.

◆ getWorldQuery()

WorldQuery * getWorldQuery ( const bool clearQuery = false)
inline

◆ hasJoints()

bool hasJoints ( SceneObject * pSceneObject)

◆ initPersistFields()

void initPersistFields ( )
static

◆ interpolateTick()

void interpolateTick ( F32 delta)
virtual

This method is called every frame and lets the control interpolate between ticks so you can smooth things as long as isProcessingTicks returns true when it is called on the object

Implements Tickable.

◆ isSceneWindowAttached()

bool isSceneWindowAttached ( SceneWindow * pSceneWindow2D)

◆ mergeScene()

void mergeScene ( const Scene * pScene)

◆ onAdd()

bool onAdd ( void )
virtual

Engine.

Reimplemented from BehaviorComponent.

◆ onDeleteNotify()

void onDeleteNotify ( SimObject * object)
virtual

Called when a SimObject is deleted.

When you are on the notification list for another object and it is deleted, this method is called.

Reimplemented from BehaviorComponent.

◆ onRemove()

void onRemove ( )
virtual

Called when the object is removed from the sim.

Reimplemented from BehaviorComponent.

◆ onTamlCustomRead()

void onTamlCustomRead ( const TamlCustomNodes & customNodes)
protectedvirtual

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

Reimplemented from BehaviorComponent.

◆ onTamlCustomWrite()

void onTamlCustomWrite ( TamlCustomNodes & customNodes)
protectedvirtual

Taml callbacks.

Reimplemented from BehaviorComponent.

◆ onTamlPostRead()

void onTamlPostRead ( const TamlCustomNodes & customNodes)
protectedvirtual

Called after Taml has finished reading the object. The custom properties is additionally passed here for object who want to process it at the end of reading.

Reimplemented from SimObject.

◆ onTamlPreRead()

void onTamlPreRead ( void )
protectedvirtual

Taml callbacks.

Reimplemented from SimObject.

◆ PostSolve()

void PostSolve ( b2Contact * pContact,
const b2ContactImpulse * pImpulse )
virtual

◆ PreSolve()

virtual void PreSolve ( b2Contact * pContact,
const b2Manifold * pOldManifold )
inlinevirtual

Contact processing.

◆ processDeleteRequests()

void processDeleteRequests ( const bool forceImmediate)

◆ processTick()

void processTick ( void )
virtual

Integration.

Implements Tickable.

◆ removeAssetPreload()

void removeAssetPreload ( const char * pAssetId)

◆ removeFromScene()

void removeFromScene ( SceneObject * pSceneObject)

◆ resetDebugStats()

void resetDebugStats ( void )
inline

◆ SayGoodbye() [1/2]

virtual void SayGoodbye ( b2Fixture * pFixture)
inlinevirtual

◆ SayGoodbye() [2/2]

void SayGoodbye ( b2Joint * pJoint)
virtual

Destruction listeners.

◆ sceneRender()

void sceneRender ( const SceneRenderState * pSceneRenderState)

Render output.

◆ setBatchingEnabled()

void setBatchingEnabled ( const bool enabled)
inline

Miscellaneous.

◆ setDebugOff()

void setDebugOff ( const U32 debugMask)
inline

◆ setDebugOn()

void setDebugOn ( const U32 debugMask)
inline

Debug and metrics.

◆ setDebugSceneObject()

void setDebugSceneObject ( SceneObject * pSceneObject)

◆ setDistanceJointDampingRatio()

void setDistanceJointDampingRatio ( const U32 jointId,
const F32 dampingRatio )

◆ setDistanceJointFrequency()

void setDistanceJointFrequency ( const U32 jointId,
const F32 frequency )

◆ setDistanceJointLength()

void setDistanceJointLength ( const U32 jointId,
const F32 length )

◆ setFrictionJointMaxForce()

void setFrictionJointMaxForce ( const U32 jointId,
const F32 maxForce )

◆ setFrictionJointMaxTorque()

void setFrictionJointMaxTorque ( const U32 jointId,
const F32 maxTorque )

◆ setGravity() [1/2]

void setGravity ( const b2Vec2 & gravity)
inline

◆ setGravity() [2/2]

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

Physics.

◆ setIsEditorScene()

void setIsEditorScene ( bool status)
inline

◆ setLayerSortMode()

void setLayerSortMode ( const U32 layer,
const SceneRenderQueue::RenderSort sortMode )

Layer sorting.

◆ setMotorJointAngularOffset()

void setMotorJointAngularOffset ( const U32 jointId,
const F32 angularOffset )

◆ setMotorJointLinearOffset()

void setMotorJointLinearOffset ( const U32 jointId,
const b2Vec2 & linearOffset )

◆ setMotorJointMaxForce()

void setMotorJointMaxForce ( const U32 jointId,
const F32 maxForce )

◆ setMotorJointMaxTorque()

void setMotorJointMaxTorque ( const U32 jointId,
const F32 maxTorque )

◆ setPositionIterations()

void setPositionIterations ( const S32 iterations)
inline

◆ setPrismaticJointLimit()

void setPrismaticJointLimit ( const U32 jointId,
const bool enableLimit,
const F32 lowerTranslation,
const F32 upperTranslation )

◆ setPrismaticJointMotor()

void setPrismaticJointMotor ( const U32 jointId,
const bool enableMotor,
const F32 motorSpeed = b2_pi,
const F32 maxMotorForce = 0.0f )

◆ setRenderCallback()

void setRenderCallback ( const bool callback)
inline

◆ setRevoluteJointLimit()

void setRevoluteJointLimit ( const U32 jointId,
const bool enableLimit,
const F32 lowerAngle,
const F32 upperAngle )

◆ setRevoluteJointMotor()

void setRevoluteJointMotor ( const U32 jointId,
const bool enableMotor,
const F32 motorSpeed = b2_pi,
const F32 maxMotorTorque = 0.0f )

◆ setRopeJointMaxLength()

void setRopeJointMaxLength ( const U32 jointId,
const F32 maxLength )

◆ setScenePause()

void setScenePause ( bool status)
inline

◆ setTargetJointDampingRatio()

void setTargetJointDampingRatio ( const U32 jointId,
const F32 dampingRatio )

◆ setTargetJointFrequency()

void setTargetJointFrequency ( const U32 jointId,
const F32 frequency )

◆ setTargetJointMaxForce()

void setTargetJointMaxForce ( const U32 jointId,
const F32 maxForce )

◆ setTargetJointTarget()

void setTargetJointTarget ( const U32 jointId,
const b2Vec2 & worldTarget )

◆ setUpdateCallback()

void setUpdateCallback ( const bool callback)
inline

◆ setVelocityIterations()

void setVelocityIterations ( const S32 iterations)
inline

◆ setWeldJointDampingRatio()

void setWeldJointDampingRatio ( const U32 jointId,
const F32 dampingRatio )

◆ setWeldJointFrequency()

void setWeldJointFrequency ( const U32 jointId,
const F32 frequency )

◆ setWheelJointDampingRatio()

void setWheelJointDampingRatio ( const U32 jointId,
const F32 dampingRatio )

◆ setWheelJointFrequency()

void setWheelJointFrequency ( const U32 jointId,
const F32 frequency )

◆ setWheelJointMotor()

void setWheelJointMotor ( const U32 jointId,
const bool enableMotor,
const F32 motorSpeed = b2_pi,
const F32 maxMotorTorque = 0.0f )

◆ writeGravity()

bool writeGravity ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeLayerSortMode()

bool writeLayerSortMode ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writePositionIterations()

bool writePositionIterations ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeRenderCallback()

bool writeRenderCallback ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeUpdateCallback()

bool writeUpdateCallback ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

◆ writeVelocityIterations()

bool writeVelocityIterations ( void * obj,
StringTableEntry pFieldName )
inlinestaticprotected

Member Data Documentation

◆ LoadingScene

SimObjectPtr< Scene > LoadingScene = NULL
static

◆ mDebugDraw

DebugDraw mDebugDraw

Debug drawing.

◆ mParticleSystem

b2ParticleSystem* mParticleSystem

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