20 # pragma warning(push)
21 # pragma warning( disable : 4275 )
44 class MaterialManager;
119 agx::Real localForce(
size_t idx )
const;
140 agx::Real getNormalForceMagnitude()
const;
145 agx::Real getTangentialForceUMagnitude()
const;
150 agx::Real getTangentialForceVMagnitude()
const;
155 agx::Real getTangentialForceMagnitude()
const;
184 agx::UInt8 const& faceFeature(
size_t ith)
const;
206 agx::Vec3 getWitnessPoint(
size_t ith)
const;
219 void setIsHolonomic(
agx::Bool isHolonomic );
234 template<
typename T1,
typename T2>
237 to.point() = from.point();
238 to.normal() = from.normal();
239 to.depth() = from.depth();
240 to.area() = from.area();
242 to.velocity() = from.velocity();
243 to.enabled() = from.enabled();
245 to.shape1() = from.shape1();
246 to.shape2() = from.shape2();
248 to.faceIndex1() = from.faceIndex1();
249 to.faceIndex2() = from.faceIndex2();
250 to.faceFeature1() = from.faceFeature1();
251 to.faceFeature2() = from.faceFeature2();
252 to.state() = from.state();
307 agx::Vec3f calculateRelativeVelocity(
size_t pointIndex = 0 )
const;
360 void* getCustomData();
363 const void* getCustomData()
const;
369 void setCustomData(
void* customData );
403 void setEnable(
bool flag);
428 bool isEnabled()
const;
447 void setGeometry(
size_t ith,
Geometry* geom );
454 void markForRemoval(
bool immediately );
461 bool shouldBeCalled() const;
466 void setMaterial(
agx::ContactMaterial* material );
468 void setHasSurfaceVelocity(
bool flag );
472 void setHasInternalMaterial(
bool flag );
473 bool getHasInternalMaterial( ) const;
483 if (this->rigidBody(0) == body)
return 0;
484 if (this->rigidBody(1) == body)
return 1;
490 if (this->
geometry(0) == geometry)
return 0;
491 if (this->
geometry(1) == geometry)
return 1;
559 return sqr > 0 ? std::sqrt( sqr ) : 0;
579 return forceU + forceV;
598 return sqr > 0 ? std::sqrt( sqr ) : 0;
603 return (
state() & contactPointState ) != 0;
631 agx::Physics::GeometryContactPtr(contact)
659 AGX_FORCE_INLINE void GeometryContact::setGeometry(
size_t ith, Geometry* geom )
671 if (pointIndex >
points().size() - 1)
780 this->
material() = material->getEntity();
859 # pragma warning(pop)
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
agx::RigidBody * getRigidBody()
Type-specific Array used for fast access into the data held by a Buffer.
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 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.
AGX_STATIC_ASSERT(sizeof(ContactPoint)==sizeof(agx::Physics::ContactPointPtr))
agxData::Array< ContactPoint > ContactPointVector
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
AGXTERRAIN_EXPORT void clear()
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.