20 # pragma warning(push) 21 # pragma warning( disable : 4275 ) // warning C4275: non dll-interface class 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;
355 ContactPointVector& points();
358 const ContactPointVector& points()
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 );
473 void setHasInternalMaterial(
bool flag );
474 bool getHasInternalMaterial( ) const;
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;
503 inline ContactPoint::ContactPoint() :
agx::Physics::ContactPointPtr(
agx::Physics::ContactPointModel::createInstance() )
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)
672 if (pointIndex >
points().size() - 1)
781 this->
material() = material->getEntity();
816 if (ith == 0)
return faceIndex1();
else return faceIndex2();
822 if (ith == 0)
return faceIndex1();
else return faceIndex2();
828 if (ith == 0)
return faceFeature1();
else return faceFeature2();
834 if (ith == 0)
return faceFeature1();
else return faceFeature2();
840 if (ith == 0)
return shape1();
else return shape2();
846 if (ith == 0)
return shape1();
else return shape2();
860 # pragma warning(pop)
AGXTERRAIN_EXPORT void clear()
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agxData::Array< ContactPoint > ContactPointVector
#define AGXPHYSICS_EXPORT
Pointer to a entity instance of type Physics.Geometry.Shape.
agx::Vec3 getVelocity() const
Velocity of center of mass frame origin, in world coordinate frame.
template void copyContactPoint(const agx::Physics::ContactPointPtr &, LocalContactPoint &)
Type-specific Array used for fast access into the data held by a Buffer.
The geometry representation used by the collision detection engine.
agx::Vec3 getCmPosition() const
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Vec3 getAngularVelocity() const
Angular velocity in world coordinate frame.
The rigid body class, combining a geometric model and a frame of reference.
AGXPHYSICS_EXPORT agx::UInt8 & state()
AGXPHYSICS_EXPORT agxCollide::Geometry *& model()
agx::Physics::GeometryPtr getEntity() const
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::RigidBody * getRigidBody()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGX_STATIC_ASSERT(sizeof(ContactPoint)==sizeof(agx::Physics::ContactPointPtr))