Function Karana::KUtils::visualizeInterBodyForce

Function Karana::KUtils::visualizeInterBodyForce#

Function Documentation#

kc::ks_ptr<ScaledVectorVisualizer> Karana::KUtils::visualizeInterBodyForce(const kc::ks_ptr<kd::HingeOnode> &onode, const kc::ks_ptr<ks::ProxyScene> &scene, bool use_ta)#

Visualize the interbody force on a node.

Parameters:
  • onode – The Onode to visualize the force for.

  • scene – The ProxyScene to use for visualizing.

  • use_ta – If true, use TA getInterBodyForceTAFwdDyn to calculate the force. Otherwise, use getInterBodyForceTreeFwdDyn.

Returns:

A ScaledVectorVisualizer for visualizing the interbody force on the node.