21# pragma warning( disable : 4275 )
44 class MaterialManager;
120 agx::Real localForce(
size_t idx )
const;
141 agx::Real getNormalForceMagnitude()
const;
146 agx::Real getTangentialForceUMagnitude()
const;
151 agx::Real getTangentialForceVMagnitude()
const;
156 agx::Real getTangentialForceMagnitude()
const;
185 agx::UInt8 const& faceFeature(
size_t ith)
const;
207 agx::Vec3 getWitnessPoint(
size_t ith)
const;
220 void setIsHolonomic(
agx::Bool isHolonomic );
235 template<
typename T1,
typename T2>
238 to.point() = from.point();
239 to.normal() = from.normal();
240 to.depth() = from.depth();
241 to.area() = from.area();
243 to.velocity() = from.velocity();
244 to.enabled() = from.enabled();
246 to.shape1() = from.shape1();
247 to.shape2() = from.shape2();
249 to.faceIndex1() = from.faceIndex1();
250 to.faceIndex2() = from.faceIndex2();
251 to.faceFeature1() = from.faceFeature1();
252 to.faceFeature2() = from.faceFeature2();
253 to.state() = from.state();
308 agx::Vec3f calculateRelativeVelocity(
size_t pointIndex = 0 )
const;
361 void* getCustomData();
364 const void* getCustomData()
const;
370 void setCustomData(
void* customData );
404 void setEnable(
bool flag);
429 bool isEnabled()
const;
448 void setGeometry(
size_t ith,
Geometry* geom );
455 void markForRemoval(
bool immediately );
462 bool shouldBeCalled() const;
467 void setMaterial(
agx::ContactMaterial* material );
469 void setHasSurfaceVelocity(
bool flag );
471 GeometryPair getGeometryPair();
473 void setHasInternalMaterial(
bool flag );
474 bool getHasInternalMaterial( ) const;
476 void setState(
agx::UInt8 state );
484 if (this->rigidBody(0) == body)
return 0;
485 if (this->rigidBody(1) == body)
return 1;
491 if (this->
geometry(0) == geometry)
return 0;
492 if (this->
geometry(1) == geometry)
return 1;
560 return sqr > 0 ? std::sqrt( sqr ) : 0;
580 return forceU + forceV;
599 return sqr > 0 ? std::sqrt( sqr ) : 0;
604 return (
state() & contactPointState ) != 0;
632 agx::Physics::GeometryContactPtr(contact)
660 AGX_FORCE_INLINE void GeometryContact::setGeometry(
size_t ith, Geometry* geom )
672 if (pointIndex >
points().size() - 1)
781 this->
material() = material->getEntity();
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
agx::RigidBody * getRigidBody()
Only use as member allocated variable.
AGXPHYSICS_EXPORT agx::UInt8 & state()
AGXPHYSICS_EXPORT agxCollide::Geometry *& model()
Pointer to a entity instance of type Physics.Geometry.Shape.
The rigid body class, combining a geometric model and a frame of reference.
agx::Vec3 getAngularVelocity() const
Angular velocity in world coordinate frame.
agx::Vec3 getVelocity() const
Velocity of center of mass frame origin, in world coordinate frame.
agx::Vec3 getCmPosition() const
#define DOXYGEN_END_INTERNAL_BLOCK()
#define AGX_STATIC_ASSERT(X)
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
void copyContactPoint(const T1 &from, T2 &to)
Copy between the different kinds of contact points.
agxData::Array< ContactPoint > ContactPointVector
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.