#include <Physics_Base.h>
Inherits DigitalSpaces::DIObjectBase.
To access this interface, you will have to do a dss_cast/QueryInterface.
Public Member Functions | |
| void | BeginSetup () |
| Begins initialization of a newly created physics object. | |
| void | BeginSetup (const char *sObjectType) |
| Begins initialization of a newly created physics object, allowing specification of an object subtype. | |
| void | EndSetup () |
| Causes actual initialization of the physics object, using the type specified in BeginSetup and the properties set by the Set functions. | |
| void | SetUserData (void *userData) |
| Allows storage of an unknown peice of data for the user. | |
| void * | GetUserData () |
| Retreives a stored peice of unknown data. | |
Set Properties | |
Set Properties, overiding defaults.
If you attempt to set a property that does not exist, or attempt to set a property to an invalid data type, this is silently ignored. | |
| void | Set (const char *sSettingName, in_Vector3f *vecValue) |
| Set a property to a vector value. | |
| void | Set (const char *sSettingName, in_Quaternionf *qtrValue) |
| Set a property to a quaternion value. | |
| void | Set (const char *sSettingName, float fValue) |
| Set a property to a floating point value. | |
| void | Set (const char *sSettingName, bool bValue) |
| Set a property to a boolean value. | |
Get Properties | |
Get properties, either defaults or as set by the Set functions. If the property does not exist, or is not the type specified, then no data (or an error indicator) will be returned.
| |
| void | GetPropertyNames (DIStringList1 *propertyList) |
| Get the names of all the properties currently set on this object. | |
| void | GetVector (const char *sSettingName, out_Vector3f *vecValue) |
| Retreive a property that is stored as a vector. | |
| void | GetQuaternion (const char *sSettingName, out_Quaternionf *quatValue) |
| Retreive a property that is stored as a quaternion. | |
| float | GetFloat (const char *sSettingName) |
| Retreive a property that is stored as a float. | |
| bool | GetBool (const char *sSettingName) |
| Retreive a property that is stored as a boolean. | |
| const char * | GetName () |
| Retrieve the name of the object. | |
| void DigitalSpaces::DIPhysicsBase::BeginSetup | ( | ) |
Begins initialization of a newly created physics object.
This function is appropriate when initializing an object that doesnt support subtypes (DIPhysicsWorld, DIPhysicsBody). If you call this function on an object that does support subtypes, initialization will not occur correctly, and the results are undetermined.
| void DigitalSpaces::DIPhysicsBase::BeginSetup | ( | const char * | sObjectType | ) |
Begins initialization of a newly created physics object, allowing specification of an object subtype.
For a list of what subtypes are supported, see DIPhysicsShape and DIPhysicsJoint. If called on an object that doesn't support subtypes, sObjectType will be ignored, as if BeginSetup() had been called. Calling with an unsupported value of sObjectType will prevent initialization occuring correctly, and will result in an undetermined state.
| void DigitalSpaces::DIPhysicsBase::Set | ( | const char * | sSettingName, | |
| in_Vector3f * | vecValue | |||
| ) |
Set a property to a vector value.
| void DigitalSpaces::DIPhysicsBase::Set | ( | const char * | sSettingName, | |
| in_Quaternionf * | qtrValue | |||
| ) |
Set a property to a quaternion value.
| void DigitalSpaces::DIPhysicsBase::Set | ( | const char * | sSettingName, | |
| float | fValue | |||
| ) |
Set a property to a floating point value.
| void DigitalSpaces::DIPhysicsBase::Set | ( | const char * | sSettingName, | |
| bool | bValue | |||
| ) |
Set a property to a boolean value.
| void DigitalSpaces::DIPhysicsBase::EndSetup | ( | ) |
Causes actual initialization of the physics object, using the type specified in BeginSetup and the properties set by the Set functions.
| void DigitalSpaces::DIPhysicsBase::SetUserData | ( | void * | userData | ) |
| void* DigitalSpaces::DIPhysicsBase::GetUserData | ( | ) |
| void DigitalSpaces::DIPhysicsBase::GetPropertyNames | ( | DIStringList1 * | propertyList | ) |
Get the names of all the properties currently set on this object.
| [out] | propertyList | A String List that will have the names of the available properties appended to it. The implementation does not clear the list before appending. |
| void DigitalSpaces::DIPhysicsBase::GetVector | ( | const char * | sSettingName, | |
| out_Vector3f * | vecValue | |||
| ) |
Retreive a property that is stored as a vector.
| sSettingName | The name of the property. | |
| [out] | vecValue | Vector to be filled with the property value. |
| void DigitalSpaces::DIPhysicsBase::GetQuaternion | ( | const char * | sSettingName, | |
| out_Quaternionf * | quatValue | |||
| ) |
Retreive a property that is stored as a quaternion.
| sSettingName | The name of the property. | |
| [out] | quatValue | Quaternion to be filled with the property value. |
| float DigitalSpaces::DIPhysicsBase::GetFloat | ( | const char * | sSettingName | ) |
Retreive a property that is stored as a float.
| sSettingName | The name of the property. |
| bool DigitalSpaces::DIPhysicsBase::GetBool | ( | const char * | sSettingName | ) |
Retreive a property that is stored as a boolean.
| sSettingName | The name of the property. |
| const char* DigitalSpaces::DIPhysicsBase::GetName | ( | ) |
Retrieve the name of the object.
This is the name used when the object is created, as all physics objects have a unique name, at least to their type of object.
1.5.6