|
| agx::Real AGXPHYSICS_EXPORT | calculateElasticRestLength (const agxCollide::Box *box, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth) |
| | Computes elastic rest length for this shape, point and normal. More...
|
| |
| agx::Real AGXPHYSICS_EXPORT | calculateElasticRestLength (const agxCollide::Capsule *capsule, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth) |
| | Computes elastic rest length for this shape, point and normal. More...
|
| |
| agx::Real AGXPHYSICS_EXPORT | calculateElasticRestLength (const agxCollide::Cylinder *cylinder, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth) |
| | Computes elastic rest length for this shape, point and normal. More...
|
| |
| agx::Real AGXPHYSICS_EXPORT | calculateElasticRestLength (const agxCollide::Mesh *mesh, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth) |
| | Computes elastic rest length for this shape, point and normal. More...
|
| |
| 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. More...
|
| |
| agx::Real AGXPHYSICS_EXPORT | calculateElasticRestLength (const agxCollide::Sphere *sphere, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real depth) |
| | Computes elastic rest length for this shape, point and normal. More...
|
| |
Computes elastic rest length for this shape, point and normal.
It is defined as the intersection length of a line (defined by the point and the normal) with the shape. Note that the intersection can be on the line's positive side, negative side, or both. Note that for the sphere case, we will assume that the line of point and normal goes through the sphere's mid point, since all colliders involving spheres give us contact points like that.
- Parameters
-
| box | The shape. Can have transformation. |
| point | A point in world coordinates. Used for anchoring the line. Assumed to have come from collision detection code. |
| normal | A normal in world coordinates. Expected to have length 1. |
| depth | The depth of the contact point. Only used for approximative calculations in mesh case. Used for giving direction to the line. Assumed to have come from collision detection code. |
- Return values
-
| The | elastic rest length, defined as the intersection length between line and shape. |
Computes elastic rest length for this shape, point and normal.
It is defined as the intersection length of a line (defined by the point and the normal) with the shape. Note that the intersection can be on the line's positive side, negative side, or both. Note that for the sphere case, we will assume that the line of point and normal goes through the sphere's mid point, since all colliders involving spheres give us contact points like that.
- Parameters
-
| capsule | The shape. Can have transformation. |
| point | A point in world coordinates. Used for anchoring the line. Assumed to have come from collision detection code. |
| normal | A normal in world coordinates. Expected to have length 1. |
| depth | The depth of the contact point. Only used for approximative calculations in mesh case. Used for giving direction to the line. Assumed to have come from collision detection code. |
- Return values
-
| The | elastic rest length, defined as the intersection length between line and shape. |
Computes elastic rest length for this shape, point and normal.
It is defined as the intersection length of a line (defined by the point and the normal) with the shape. Note that the intersection can be on the line's positive side, negative side, or both. Note that for the sphere case, we will assume that the line of point and normal goes through the sphere's mid point, since all colliders involving spheres give us contact points like that.
- Parameters
-
| cylinder | The shape. Can have transformation. |
| point | A point in world coordinates. Used for anchoring the line. Assumed to have come from collision detection code. |
| normal | A normal in world coordinates. Expected to have length 1. |
| depth | The depth of the contact point. Only used for approximative calculations in mesh case. Used for giving direction to the line. Assumed to have come from collision detection code. |
- Return values
-
| The | elastic rest length, defined as the intersection length between line and shape. |
Computes elastic rest length for this shape, point and normal.
It is defined as the intersection length of a line (defined by the point and the normal) with the shape. Note that the intersection can be on the line's positive side, negative side, or both. Note that for the sphere case, we will assume that the line of point and normal goes through the sphere's mid point, since all colliders involving spheres give us contact points like that.
- Parameters
-
| mesh | The shape. Can have transformation. |
| point | A point in world coordinates. Used for anchoring the line. Assumed to have come from collision detection code. |
| normal | A normal in world coordinates. Expected to have length 1. |
| depth | The depth of the contact point. Only used for approximative calculations in mesh case. Used for giving direction to the line. Assumed to have come from collision detection code. |
- Return values
-
| The | elastic rest length, defined as the intersection length between line and shape. |
Computes elastic rest length for this shape, point and normal.
It is defined as the intersection length of a line (defined by the point and the normal) with the shape. Note that the intersection can be on the line's positive side, negative side, or both. Note that for the sphere case, we will assume that the line of point and normal goes through the sphere's mid point, since all colliders involving spheres give us contact points like that.
- Parameters
-
| sphere | The shape. Can have transformation. |
| point | A point in world coordinates. Used for anchoring the line. Assumed to have come from collision detection code. |
| normal | A normal in world coordinates. Expected to have length 1. |
| depth | The depth of the contact point. Only used for approximative calculations in mesh case. Used for giving direction to the line. Assumed to have come from collision detection code. |
- Return values
-
| The | elastic rest length, defined as the intersection length between line and shape. |