PixelLightAPI
.
|
Physics world scene node container. More...
#include <SCPhysicsWorld.h>
Public Member Functions | |
PLPHYSICS_API bool | GetSimulationActive () const |
PLPHYSICS_API void | SetSimulationActive (bool bValue) |
PLPHYSICS_API float | GetSimulationSpeed () const |
PLPHYSICS_API void | SetSimulationSpeed (float fValue) |
PLPHYSICS_API float | GetSimulationQuality () const |
PLPHYSICS_API void | SetSimulationQuality (float fValue) |
PLPHYSICS_API float | GetFrameRate () const |
PLPHYSICS_API void | SetFrameRate (float fValue) |
PLPHYSICS_API const PLMath::Vector3 & | GetGravity () const |
PLPHYSICS_API void | SetGravity (const PLMath::Vector3 &vValue) |
PLPHYSICS_API bool | GetBuoyancyActive () const |
PLPHYSICS_API void | SetBuoyancyActive (bool bValue) |
PLPHYSICS_API float | GetBuoyancyPlaneY () const |
PLPHYSICS_API void | SetBuoyancyPlaneY (float fValue) |
PLPHYSICS_API | SCPhysicsWorld () |
Default constructor. | |
virtual PLPHYSICS_API | ~SCPhysicsWorld () |
Destructor. | |
PLPHYSICS_API World * | GetWorld () const |
Returns the PL physics world. | |
virtual PLPHYSICS_API bool | LoadByFilename (const PLCore::String &sFilename, const PLCore::String &sParams="", const PLCore::String &sMethod="") override |
Loads the loadable from a file given by filename. | |
virtual PLPHYSICS_API bool | LoadByFile (PLCore::File &cFile, const PLCore::String &sParams="", const PLCore::String &sMethod="") override |
Loads the loadable from a file given by a reference. | |
Protected Member Functions | |
virtual PLPHYSICS_API void | InitFunction () override |
This function is called when the scene node gets initialized. | |
virtual PLPHYSICS_API void | DeInitFunction () override |
This function is called when the scene node gets de-initialized. | |
virtual PLPHYSICS_API void | OnActivate (bool bActivate) override |
Called when the scene node has been activated or deactivated. |
Physics world scene node container.
PLPHYSICS_API PLPhysics::SCPhysicsWorld::SCPhysicsWorld | ( | ) |
Default constructor.
virtual PLPHYSICS_API PLPhysics::SCPhysicsWorld::~SCPhysicsWorld | ( | ) | [virtual] |
Destructor.
PLPHYSICS_API bool PLPhysics::SCPhysicsWorld::GetSimulationActive | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetSimulationActive | ( | bool | bValue | ) |
PLPHYSICS_API float PLPhysics::SCPhysicsWorld::GetSimulationSpeed | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetSimulationSpeed | ( | float | fValue | ) |
PLPHYSICS_API float PLPhysics::SCPhysicsWorld::GetSimulationQuality | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetSimulationQuality | ( | float | fValue | ) |
PLPHYSICS_API float PLPhysics::SCPhysicsWorld::GetFrameRate | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetFrameRate | ( | float | fValue | ) |
PLPHYSICS_API const PLMath::Vector3& PLPhysics::SCPhysicsWorld::GetGravity | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetGravity | ( | const PLMath::Vector3 & | vValue | ) |
PLPHYSICS_API bool PLPhysics::SCPhysicsWorld::GetBuoyancyActive | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetBuoyancyActive | ( | bool | bValue | ) |
PLPHYSICS_API float PLPhysics::SCPhysicsWorld::GetBuoyancyPlaneY | ( | ) | const |
PLPHYSICS_API void PLPhysics::SCPhysicsWorld::SetBuoyancyPlaneY | ( | float | fValue | ) |
PLPHYSICS_API World* PLPhysics::SCPhysicsWorld::GetWorld | ( | ) | const |
Returns the PL physics world.
virtual PLPHYSICS_API void PLPhysics::SCPhysicsWorld::InitFunction | ( | ) | [override, protected, virtual] |
This function is called when the scene node gets initialized.
Reimplemented from PLScene::SceneContainer.
virtual PLPHYSICS_API void PLPhysics::SCPhysicsWorld::DeInitFunction | ( | ) | [override, protected, virtual] |
This function is called when the scene node gets de-initialized.
Reimplemented from PLScene::SceneContainer.
virtual PLPHYSICS_API void PLPhysics::SCPhysicsWorld::OnActivate | ( | bool | bActivate | ) | [override, protected, virtual] |
Called when the scene node has been activated or deactivated.
[in] | bActivate | 'true' if the scene node is now active, else 'false' |
Reimplemented from PLScene::SceneContainer.
virtual PLPHYSICS_API bool PLPhysics::SCPhysicsWorld::LoadByFilename | ( | const PLCore::String & | sFilename, |
const PLCore::String & | sParams = "" , |
||
const PLCore::String & | sMethod = "" |
||
) | [override, virtual] |
Loads the loadable from a file given by filename.
[in] | sFilename | Loadable filename |
[in] | sParams | Optional load method parameters, can be an empty string |
[in] | sMethod | Optional name of the load method to use, can be an empty string |
Reimplemented from PLScene::SceneContainer.
virtual PLPHYSICS_API bool PLPhysics::SCPhysicsWorld::LoadByFile | ( | PLCore::File & | cFile, |
const PLCore::String & | sParams = "" , |
||
const PLCore::String & | sMethod = "" |
||
) | [override, virtual] |
Loads the loadable from a file given by a reference.
[in] | cFile | File to load from, must be opened and readable |
[in] | sParams | Optional load method parameters, can be an empty string |
[in] | sMethod | Optional name of the load method to use, can be an empty string |
Reimplemented from PLScene::SceneContainer.
|