17#ifndef MOMENTUM_CUSTOMBUFFER_H
18#define MOMENTUM_CUSTOMBUFFER_H
20#include "momentum_export.h"
21#include "momentum_namespace.h"
26#include <agxSDK/CustomBuffer.h>
49#ifndef AGX_MOMENTUM_ANALYSIS_API
Custom Buffer class where values of different types can be stored for rigid bodies.
Definition: CustomBuffer.h:34
void setCustomBufferValueReal(RigidBody rb, double value)
Set a value of type float for a rigid body.
Vec3 getCustomBufferValueVec3(RigidBody rb)
Return the vec3 value that is stored for the rigid body.
void setCustomBufferValueString(RigidBody rb, std::string value)
Set a value of type string for a rigid body.
std::string getCustomBufferValueString(RigidBody rb)
Return the string value that is stored for the rigid body.
void setCustomBufferValueVec3(RigidBody rb, Vec3 value)
Set a value of type vec3 for a rigid body.
agxSDK::CustomBufferRef m_customBuffer
Definition: CustomBuffer.h:107
double getCustomBufferValueReal(RigidBody rb)
Return the real value that is stored for the rigid body.
Vec4 getCustomBufferValueVec4(RigidBody rb)
Return the vec4 value that is stored for the rigid body.
void setCustomBufferValueVec4(RigidBody rb, Vec4 value)
Set a value of type vec4 for a rigid body.
A rigid body is a moving (translation/rotation) object with a mass and a inertia.
Definition: RigidBody.h:52
A 3 dimensional vector which can be used to define a point or a vector and contains basic arithmetic.
Definition: Vec3.h:40
A 4 dimensional vector and contains basic arithmetic.
Definition: Vec4.h:33
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29