AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ElasticRestLengthCalculator.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#pragma once
18
20#include <agx/Vec3.h>
21
22
23namespace agxCollide
24{
25 class Shape;
26 class Sphere;
27 class Box;
28 class Capsule;
29 class Cylinder;
30 class Mesh;
31
32 namespace ElasticRestLengthCalculator
33 {
49 const agxCollide::Shape* shape,
50 const agx::Vec3& point,
51 const agx::Vec3& normal,
52 const agx::Real depth);
53
71 const agxCollide::Sphere* sphere,
72 const agx::Vec3& point,
73 const agx::Vec3& normal,
74 const agx::Real depth);
75
93 const agxCollide::Box* box,
94 const agx::Vec3& point,
95 const agx::Vec3& normal,
96 const agx::Real depth);
97
115 const agxCollide::Capsule* capsule,
116 const agx::Vec3& point,
117 const agx::Vec3& normal,
118 const agx::Real depth);
119
137 const agxCollide::Cylinder* cylinder,
138 const agx::Vec3& point,
139 const agx::Vec3& normal,
140 const agx::Real depth);
141
159 const agxCollide::Mesh* mesh,
160 const agx::Vec3& point,
161 const agx::Vec3& normal,
162 const agx::Real depth);
163
164 }
165}
166
#define AGXPHYSICS_EXPORT
A box shape for geometric intersection tests.
Definition Box.h:33
Implements a Capsule shape for geometric intersection tests.
Definition Capsule.h:35
A cylinder shape for geometric intersection tests.
Definition Cylinder.h:37
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
Definition Mesh.h:70
Base class for a shape.
Definition Shape.h:54
A sphere class for geometric intersection tests.
Definition Sphere.h:32
agx::Real AGXPHYSICS_EXPORT calculateElasticRestLength(const agxCollide::Shape *shape, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth)
Computes elastic rest length for this shape, point and normal.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
double Real
Definition Real.h:42