27 # pragma warning(push) 28 # pragma warning(disable: 6385) // Disable warning C6385: Reading invalid data 29 # pragma warning(disable: 6386) // Disable warning C6386: Buffer overrun while writing 35 class ContactMaterial;
74 , m_elasticRestLengthShape1(1)
75 , m_elasticRestLengthShape2(1)
97 , m_elasticRestLengthShape1(1)
98 , m_elasticRestLengthShape2(1)
101 , m_material(nullptr)
114 : LocalContactPoint( p, (
agx::
Vec3f)n, d )
140 m_state = (
agx::UInt8 )( m_state & ~NONHOLONOMIC );
191 LocalContactPoint local( pointType.point(), pointType.normal(), pointType.depth() );
192 local.m_maxNormalForce = pointType.maxNormalForce();
193 local.m_velocity = pointType.velocity();
194 local.m_area = pointType.area();
195 local.m_elasticRestLengthShape1 = pointType.elasticRestLengthShape1();
196 local.m_elasticRestLengthShape2 = pointType.elasticRestLengthShape2();
197 local.m_shape1 = pointType.shape1();
198 local.m_shape2 = pointType.shape2();
199 local.m_faceIndex1 = pointType.faceIndex1();
200 local.m_faceIndex2 = pointType.faceIndex2();
201 local.m_faceFeature1 = pointType.faceFeature1();
202 local.m_faceFeature2 = pointType.faceFeature2();
203 local.m_state = pointType.state();
216 m_geometries[0] =
nullptr;
217 m_geometries[1] =
nullptr;
218 m_bodies[0] =
nullptr;
219 m_bodies[1] =
nullptr;
220 m_contactMaterial =
nullptr;
221 m_hasInternalMaterial =
false;
222 m_hasSurfaceVelocity =
false;
226 m_geometries[0] = g1;
227 m_geometries[1] = g2;
231 m_bodies[1] = m_geometries[1]->getRigidBody();
232 m_contactMaterial =
nullptr;
233 m_hasInternalMaterial =
false;
234 m_hasSurfaceVelocity =
false;
238 m_geometries[0] = g1;
239 m_geometries[1] = g2;
242 m_contactMaterial =
nullptr;
243 m_hasInternalMaterial =
false;
244 m_hasSurfaceVelocity =
false;
248 m_geometries[0] = g1;
249 m_geometries[1] = g2;
253 m_bodies[1] = m_geometries[1]->getRigidBody();
258 m_geometries[0] = g1;
259 m_geometries[1] = g2;
294 LocalContactPointVector m_points;
353 # pragma warning(pop)
LocalParticleGeometryContact()
const agx::Physics::ParticlePtr & particle1() const
LocalParticlePairContact(agx::Physics::ParticlePtr p1, agx::Physics::ParticlePtr p2)
agx::Physics::ParticlePtr & particle2()
const agx::Physics::ParticlePtr & particle2() const
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Pointer to a entity instance of type Physics.Geometry.Shape.
const agx::Physics::ParticlePtr & particle() const
agx::Physics::ParticlePtr & particle1()
agx::Vector< LocalParticleGeometryContact > LocalParticleGeometryContactVector
The geometry representation used by the collision detection engine.
LocalParticlePairContact()
agx::Vector< LocalParticlePairContact > LocalParticlePairContactVector
const agx::Physics::GeometryPtr & geometry() const
LocalParticleGeometryContact(agx::Physics::ParticlePtr particle, agx::Physics::GeometryPtr geometry)
agx::Vector< LocalGeometryContact > LocalGeometryContactVector
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Pointer to a entity instance of type Physics.Geometry.
AGXCORE_EXPORT const Real Infinity
agx::Physics::GeometryPtr & geometry()
The rigid body class, combining a geometric model and a frame of reference.
Pointer to a entity instance of type Physics.Particle.
agx::Physics::ParticlePtr & particle()
agx::VectorPOD< LocalContactPoint > LocalContactPointVector
agx::RigidBody * getRigidBody()