AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
CachedContact.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGX_PHYSICS_GRANULARBODY_CACHEDCONTACT_H
18#define AGX_PHYSICS_GRANULARBODY_CACHEDCONTACT_H
19
20#include <agxData/Type.h>
21#include <agx/Real.h>
22#include <agx/Integer.h>
23// #include <agx/Physics/ParticleEntity.h>
26#include <agx/SymmetricPair.h>
27
28namespace agx
29{
30 namespace Physics
31 {
32 namespace GranularBody
33 {
35 {
37 {
38 for (size_t i = 0; i < 6; ++i)
39 lambda[i] = 0;
40 }
41
43 };
44
46 typedef std::pair<GranularBodyPtr, GeometryPtr> GranularGeometryPair;
47 }
48 }
49}
50
51AGX_TYPE_BINDING(agx::Physics::GranularBody::ContactLambda, "Physics.GranularBody.ContactLambda")
52AGX_TYPE_BINDING(agx::Physics::GranularBody::GranularGranularPair, "Physics.GranularBody.GranularGranularPair")
53AGX_TYPE_BINDING(agx::Physics::GranularBody::GranularGeometryPair, "Physics.GranularBody.GranularGeometryPair")
54
55
56#endif /* AGX_PHYSICS_GRANULARBODY_CACHEDCONTACT_H */
#define AGX_TYPE_BINDING(_Type, _Name)
Definition Type.h:179
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
SymmetricPair< GranularBodyPtr > GranularGranularPair
std::pair< GranularBodyPtr, GeometryPtr > GranularGeometryPair
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
float Real32
Definition Real.h:44