Data from the solver the ConstraintNlmcpCallback is part of.
More...
#include <NlmcpCallback.h>
Data from the solver the ConstraintNlmcpCallback is part of.
Use this data in onSetContext.
Definition at line 191 of file NlmcpCallback.h.
◆ NlmcpCallbackSolverData()
◆ getNumRows() [1/2]
Finds number of rows the given rigid body entity has allocated in the solver.
6 for rigid bodies and 3 for particles.
- Parameters
-
| entity | - rigid body entity |
- Returns
- number of rows allocated in the solver for the given rigid body
◆ getNumRows() [2/2]
| UInt32 agx::NlmcpCallbackSolverData::getNumRows |
( |
const RigidBody * |
rb | ) |
const |
Finds number of rows the given rigid body has allocated in the solver.
6 for rigid bodies and 3 for particles.
- Parameters
-
- Returns
- number of rows allocated in the solver for the given rigid body
◆ getPermutedDirectStartRow() [1/2]
- Parameters
-
| entity | - rigid body entity in the direct solver |
- Returns
- permuted start row index in the direct solver (e.g., q and z)
◆ getPermutedDirectStartRow() [2/2]
| UInt32 agx::NlmcpCallbackSolverData::getPermutedDirectStartRow |
( |
const RigidBody * |
rb | ) |
const |
- Parameters
-
| rb | - rigid body instance in the direct solver |
- Returns
- permuted start row index in the direct solver (e.g., q and z)
◆ getRigidBodyNumRows()
| UInt32 agx::NlmcpCallbackSolverData::getRigidBodyNumRows |
( |
Index |
globalIndex | ) |
const |
Finds number of rows the given rigid body index has allocated in the solver.
6 for rigid bodies and 3 for particles.
- Parameters
-
| globalIndex | - global index of the rigid body |
- Returns
- number of rows allocated in the solver for the given rigid body index
◆ getRigidBodyPermutedDirectStartRow()
| UInt32 agx::NlmcpCallbackSolverData::getRigidBodyPermutedDirectStartRow |
( |
Index |
globalIndex | ) |
const |
- Parameters
-
| globalIndex | - rigid body entity index |
- Returns
- permuted start row index in the direct solver (e.g., q and z)
◆ operator=()
◆ directSolverData
◆ rigidBody
| const Physics::RigidBodyData& agx::NlmcpCallbackSolverData::rigidBody |
The documentation for this struct was generated from the following file: