AGX Dynamics  2.35.0.1
agx::OrientedFrictionModelImpl< T > Class Template Reference

Oriented friction box base implementation containing a frame of reference and the primary direction given in that frame. More...

#include <OrientedFrictionModels.h>

+ Inheritance diagram for agx::OrientedFrictionModelImpl< T >:

Public Types

using Model = T
 

Public Member Functions

 OrientedFrictionModelImpl (const agx::Frame *refFrame, const agx::Vec3 &primaryDirection, agx::FrictionModel::SolveType solveType)
 Construct given frame of reference and primary friction direction. More...
 
virtual void calculateTangentPlane (const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth, agx::Vec3 &ret_u, agx::Vec3 &ret_v) const override
 Calculates primary and secondary friction directions in world coordinates given contact point. More...
 
const agx::Vec3 & getPrimaryDirection () const
 
const agx::Frame * getReferenceFrame () const
 
void setPrimaryDirection (const agx::Vec3 &primaryDirection)
 Assign primary friction direction given in reference frame. More...
 
void setReferenceFrame (const agx::Frame *refFrame)
 Assign frame of reference. More...
 

Protected Member Functions

virtual ~OrientedFrictionModelImpl ()
 

Detailed Description

template<typename T>
class agx::OrientedFrictionModelImpl< T >

Oriented friction box base implementation containing a frame of reference and the primary direction given in that frame.

Definition at line 30 of file OrientedFrictionModels.h.

Member Typedef Documentation

◆ Model

template<typename T >
using agx::OrientedFrictionModelImpl< T >::Model = T

Definition at line 33 of file OrientedFrictionModels.h.

Constructor & Destructor Documentation

◆ OrientedFrictionModelImpl()

template<typename T >
agx::OrientedFrictionModelImpl< T >::OrientedFrictionModelImpl ( const agx::Frame *  refFrame,
const agx::Vec3 &  primaryDirection,
agx::FrictionModel::SolveType  solveType 
)

Construct given frame of reference and primary friction direction.

Parameters
refFrame- frame of reference
primaryDirection- primary friction direction given in the reference frame
solveType- friction model solve type

Definition at line 265 of file OrientedFrictionModels.h.

◆ ~OrientedFrictionModelImpl()

template<typename T >
agx::OrientedFrictionModelImpl< T >::~OrientedFrictionModelImpl
protectedvirtual

Definition at line 273 of file OrientedFrictionModels.h.

Member Function Documentation

◆ calculateTangentPlane()

template<typename T >
void agx::OrientedFrictionModelImpl< T >::calculateTangentPlane ( const agxCollide::Geometry *  geometry1,
const agxCollide::Geometry *  geometry2,
const agx::Vec3 &  point,
const agx::Vec3 &  normal,
const agx::Real  depth,
agx::Vec3 &  ret_u,
agx::Vec3 &  ret_v 
) const
overridevirtual

Calculates primary and secondary friction directions in world coordinates given contact point.

Definition at line 302 of file OrientedFrictionModels.h.

References agx::Attachment::createAttachmentBase(), agx::Vec3T< T >::cross(), agx::Vec3T< T >::normalize(), and agx::RealEpsilon.

◆ getPrimaryDirection()

template<typename T >
const agx::Vec3 & agx::OrientedFrictionModelImpl< T >::getPrimaryDirection
Returns
primary friction direction given in reference frame

Definition at line 290 of file OrientedFrictionModels.h.

◆ getReferenceFrame()

template<typename T >
const agx::Frame * agx::OrientedFrictionModelImpl< T >::getReferenceFrame
Returns
the frame of reference

Definition at line 278 of file OrientedFrictionModels.h.

◆ setPrimaryDirection()

template<typename T >
void agx::OrientedFrictionModelImpl< T >::setPrimaryDirection ( const agx::Vec3 &  primaryDirection)

Assign primary friction direction given in reference frame.

Parameters
primaryDirection- primary friction direction

Definition at line 296 of file OrientedFrictionModels.h.

◆ setReferenceFrame()

template<typename T >
void agx::OrientedFrictionModelImpl< T >::setReferenceFrame ( const agx::Frame *  refFrame)

Assign frame of reference.

Parameters
refFrame- frame of reference

Definition at line 284 of file OrientedFrictionModels.h.


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