Public Member Functions | |
| HRESULT | RegisterObj ([in]BSTR bstrObjName,[in] BSTR bstrEngineName) |
| HRESULT | UnRegisterObj ([in] BSTR bstrObjName,[in] BSTR bstrEngineName) |
| HRESULT | StartSimulation ([in] BSTR bstrEngineName) |
| HRESULT | StopSimulation ([in] BSTR bstrEngineName) |
| HRESULT | SimpleCollision ([in] BSTR objname1,[in] BSTR objname2,[in] RtBool precision,[out, retval] RtBool *collision) |
| HRESULT | InitCollision ([in] BSTR SpaceName) |
| HRESULT | AddPhysAttr ([in] BSTR ObjName) |
| HRESULT | RemovePhysAttr ([in] BSTR ObjName) |
| HRESULT | CreateEngine ([in] BSTR bstrSpaceRootName,[out, retval] BSTR *bstrEngineName) |
| HRESULT | InitEngine ([in] BSTR bstrEngineName,[in] RtFloat totaltime,[in] RtDWORD timestep,[in] RtBool bContinue) |
| HRESULT | AddEnvAttr ([in] BSTR ObjName) |
| HRESULT | RemoveEnvAttr ([in] BSTR ObjName) |
| HRESULT | AddWind ([in] BSTR SpaceName,[in] RtBool local) |
|
||||||||||||
|
Adds object with physical attributes to simulation controllen by physical engine. Both object and engine have to be in the same space. If simulation is runnning, object is immediately included to simulation.
Physics.PhysRegisterObj('/Project/Space 3D/Sphere', '/Project/Space 3D/PhysEngine' )
|
|
||||||||||||
|
Removes object with physical attributes to simulation controllen by physical engine. Both object and engine have to be in the same space. If simulation is runnning, object is immediately excluded from simulation.
|
|
|
Starts simulation controlled by physical engine with name bstrEngineName. Simulation is started in the space in which physical engine is present.
|
|
|
Stops simulation controlled by physical engine with name bstrEngineName.
|
|
||||||||||||||||||||
|
Checks collision between two objects with two levels of precision - with object's bounding boxes or object's meshes intersections
|
|
|
Inits collision detection mechanism for given space.
|
|
|
Sets default physical attributes for object
|
|
|
Removes physical attributes from object
|
|
||||||||||||
|
Creates physical engine node in space
|
|
||||||||||||||||||||
|
Inits physical engine node and sets basic simulation parameters
Physics.InitEngine('/Project/Space 3D/PhysEngine', 40.0, 2, FALSE )
|
|
|
Sets default local environmental attributes for object
|
|
|
Removes local environmental attributes from object
|
|
||||||||||||
|
Adds wind node to space
|
1.3.2