|
Momentum Scripting v1
|
#include <CustomBuffer.h>
Public Member Functions | |
| double | getCustomBufferValueReal (RigidBody rb) |
| std::string | getCustomBufferValueString (RigidBody rb) |
| Vec3 | getCustomBufferValueVec3 (RigidBody rb) |
| Vec4 | getCustomBufferValueVec4 (RigidBody rb) |
| void | setCustomBufferValueReal (RigidBody rb, double value) |
| void | setCustomBufferValueString (RigidBody rb, std::string value) |
| void | setCustomBufferValueVec3 (RigidBody rb, Vec3 value) |
| void | setCustomBufferValueVec4 (RigidBody rb, Vec4 value) |
Protected Attributes | |
| agxSDK::CustomBufferRef | m_customBuffer |
Custom Buffer class where values of different types can be stored for rigid bodies.
| double MOMENTUM_NAMESPACE::CustomBuffer::getCustomBufferValueReal | ( | RigidBody | rb | ) |
Return the real value that is stored for the rigid body.
| rb | the rigid body |
| std::string MOMENTUM_NAMESPACE::CustomBuffer::getCustomBufferValueString | ( | RigidBody | rb | ) |
Return the string value that is stored for the rigid body.
| rb | the rigid body |
Return the vec3 value that is stored for the rigid body.
| rb | the rigid body |
Return the vec4 value that is stored for the rigid body.
| rb | the rigid body |
| void MOMENTUM_NAMESPACE::CustomBuffer::setCustomBufferValueReal | ( | RigidBody | rb, |
| double | value | ||
| ) |
Set a value of type float for a rigid body.
| rb | the rigid body |
| value | the real value to store for the rigid body |
| void MOMENTUM_NAMESPACE::CustomBuffer::setCustomBufferValueString | ( | RigidBody | rb, |
| std::string | value | ||
| ) |
Set a value of type string for a rigid body.
| rb | the rigid body |
| value | the string value to store for the rigid body |
Set a value of type vec3 for a rigid body.
| rb | the rigid body |
| value | the vec3 value to store for the rigid body |
Set a value of type vec4 for a rigid body.
| rb | the rigid body |
| value | the vec4 value to store for the rigid body |
|
protected |