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 )
139 m_state = (
agx::UInt8 )( m_state & ~NONHOLONOMIC );
190 LocalContactPoint local( pointType.point(), pointType.normal(), pointType.depth() );
191 local.m_maxNormalForce = pointType.maxNormalForce();
192 local.m_velocity = pointType.velocity();
193 local.m_area = pointType.area();
194 local.m_elasticRestLengthShape1 = pointType.elasticRestLengthShape1();
195 local.m_elasticRestLengthShape2 = pointType.elasticRestLengthShape2();
196 local.m_shape1 = pointType.shape1();
197 local.m_shape2 = pointType.shape2();
198 local.m_faceIndex1 = pointType.faceIndex1();
199 local.m_faceIndex2 = pointType.faceIndex2();
200 local.m_faceFeature1 = pointType.faceFeature1();
201 local.m_faceFeature2 = pointType.faceFeature2();
202 local.m_state = pointType.state();
215 m_geometries[0] =
nullptr;
216 m_geometries[1] =
nullptr;
217 m_bodies[0] =
nullptr;
218 m_bodies[1] =
nullptr;
219 m_contactMaterial =
nullptr;
220 m_hasInternalMaterial =
false;
221 m_hasSurfaceVelocity =
false;
225 m_geometries[0] = g1;
226 m_geometries[1] = g2;
230 m_bodies[1] = m_geometries[1]->getRigidBody();
231 m_contactMaterial =
nullptr;
232 m_hasInternalMaterial =
false;
233 m_hasSurfaceVelocity =
false;
237 m_geometries[0] = g1;
238 m_geometries[1] = g2;
241 m_contactMaterial =
nullptr;
242 m_hasInternalMaterial =
false;
243 m_hasSurfaceVelocity =
false;
247 m_geometries[0] = g1;
248 m_geometries[1] = g2;
252 m_bodies[1] = m_geometries[1]->getRigidBody();
257 m_geometries[0] = g1;
258 m_geometries[1] = g2;
293 LocalContactPointVector m_points;
352 # 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
agxCollide namespace consists of a set of classes for handling geometric intersection tests including...
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
Namespace agx 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()