AGX Dynamics 2.41.3.0
Loading...
Searching...
No Matches
agx::NlmcpCallbackSolverData Struct Reference

Data from the solver the ConstraintNlmcpCallback is part of. More...

#include <NlmcpCallback.h>

Public Member Functions

 NlmcpCallbackSolverData (const NlmcpCallbackSolverData &)=delete
 
UInt32 getNumRows (const Physics::RigidBodyPtr &entity) const
 Finds number of rows the given rigid body entity has allocated in the solver.
 
UInt32 getNumRows (const RigidBody *rb) const
 Finds number of rows the given rigid body has allocated in the solver.
 
UInt32 getPermutedDirectStartRow (const Physics::RigidBodyPtr &entity) const
 
UInt32 getPermutedDirectStartRow (const RigidBody *rb) const
 
UInt32 getRigidBodyNumRows (Index globalIndex) const
 Finds number of rows the given rigid body index has allocated in the solver.
 
UInt32 getRigidBodyPermutedDirectStartRow (Index globalIndex) const
 
NlmcpCallbackSolverDataoperator= (const NlmcpCallbackSolverData &)=delete
 

Public Attributes

const DirectSolverDatadirectSolverData
 Direct solver data the ConstraintNlmcpCallback constraint is part of.
 
const Physics::RigidBodyData & rigidBody
 Global rigid body data.
 

Detailed Description

Data from the solver the ConstraintNlmcpCallback is part of.

Use this data in onSetContext.

Definition at line 191 of file NlmcpCallback.h.

Constructor & Destructor Documentation

◆ NlmcpCallbackSolverData()

agx::NlmcpCallbackSolverData::NlmcpCallbackSolverData ( const NlmcpCallbackSolverData )
delete

Member Function Documentation

◆ getNumRows() [1/2]

UInt32 agx::NlmcpCallbackSolverData::getNumRows ( const Physics::RigidBodyPtr entity) const

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
rb- rigid body
Returns
number of rows allocated in the solver for the given rigid body

◆ getPermutedDirectStartRow() [1/2]

UInt32 agx::NlmcpCallbackSolverData::getPermutedDirectStartRow ( const Physics::RigidBodyPtr entity) const
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=()

NlmcpCallbackSolverData & agx::NlmcpCallbackSolverData::operator= ( const NlmcpCallbackSolverData )
delete

Member Data Documentation

◆ directSolverData

const DirectSolverData& agx::NlmcpCallbackSolverData::directSolverData

Direct solver data the ConstraintNlmcpCallback constraint is part of.

Definition at line 194 of file NlmcpCallback.h.

◆ rigidBody

const Physics::RigidBodyData& agx::NlmcpCallbackSolverData::rigidBody

Global rigid body data.

Definition at line 193 of file NlmcpCallback.h.


The documentation for this struct was generated from the following file: