mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
* Fixes description for a few Scene methods
* Adds method to Scene to delete dynamic objects in the scene * Add getNodeTransform to ShapeBase * Add sanity check to AFX ea_update function to avoid divide by zero * Adds ability to set color mul on GuiBitmapBorderCtrl like bitmapCtrl * MatrixF utilty functions/operators * Add ability to ignore an object in the containerBoxEmpty method call * Adds some better initialization/sanity handling for resetWorldBox and resetRenderWorldBox for SceneObject
This commit is contained in:
parent
e630ab859a
commit
da06fc1d96
10 changed files with 98 additions and 15 deletions
|
|
@ -361,15 +361,19 @@ DefineEngineMethod(Scene, getRootScene, S32, (),,
|
|||
}
|
||||
|
||||
DefineEngineMethod(Scene, addDynamicObject, void, (SceneObject* sceneObj), (nullAsType<SceneObject*>()),
|
||||
"Get the root Scene object that is loaded.\n"
|
||||
"@return The id of the Root Scene. Will be 0 if no root scene is loaded")
|
||||
"Adds an object to the scene's dynamic objects list. Used for things spawned as part of gameplay and not permanent objects to be saved out as part of the level proper.")
|
||||
{
|
||||
object->addDynamicObject(sceneObj);
|
||||
}
|
||||
|
||||
DefineEngineMethod(Scene, clearDynamicObjects, void, (),,
|
||||
"Clears all objects from the scene's dynamic objects list.")
|
||||
{
|
||||
object->clearDynamicObjects();
|
||||
}
|
||||
|
||||
DefineEngineMethod(Scene, removeDynamicObject, void, (SceneObject* sceneObj), (nullAsType<SceneObject*>()),
|
||||
"Get the root Scene object that is loaded.\n"
|
||||
"@return The id of the Root Scene. Will be 0 if no root scene is loaded")
|
||||
"Removes an object from the scene's dynamic objects list.")
|
||||
{
|
||||
object->removeDynamicObject(sceneObj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue