Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
This class implements a constraint object in Clarisse.
A constaint is an embedded object that modifies the matrix of an item.
More...
Public Member Functions | |
bool | apply_constraint (const ModuleSceneItemInfo &item, GMathMatrix4x4d &global_xform) const |
Applies the constraint: computes the global matrix of the item. | |
bool | apply_constraint_at (const double &time, const ModuleSceneItemInfo &item, GMathMatrix4x4d &global_xform) const |
Applies the constraint at a specified time. | |
short | get_xform_modifier () const |
Returns which component of the xform is altered by the constraint. | |
Protected Member Functions | |
virtual void | module_constructor (OfObject &object) |
Additional Inherited Members | |
![]() | |
static ResourceID | declare_resource (const char *tag) |
static ResourceID | declare_resource (const CoreString &tag) |
static bool | declare_resource (ResourceID id, const char *tag) |
static bool | declare_resource (ResourceID id, const CoreString &tag) |
static ResourceID | get_resource_id (const char *tag) |
static ResourceID | get_resource_id (const CoreString &tag) |
static const char * | get_resource_tag (ResourceID id) |
static void | clear_unused_resources (SysThreadManager &thread_manager, const CoreBasicArray< OfObject * > &objects) |
![]() | |
static constexpr unsigned int | null_variation = 0 |
Key of the null resource variation. | |
This class implements a constraint object in Clarisse.
A constaint is an embedded object that modifies the matrix of an item.
bool ModuleConstraint::apply_constraint | ( | const ModuleSceneItemInfo & | item, |
GMathMatrix4x4d & | global_xform | ||
) | const |
Applies the constraint: computes the global matrix of the item.
[in] | item | Scene item information. |
[out] | global_xform | Output matrix. |
bool ModuleConstraint::apply_constraint_at | ( | const double & | time, |
const ModuleSceneItemInfo & | item, | ||
GMathMatrix4x4d & | global_xform | ||
) | const |
Applies the constraint at a specified time.
[in] | time | Time at which the constraint needs to be evaluated. |
[in] | item | Scene item information. |
[out] | global_xform | Output matrix. |