|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Tapered capsule collision geometry for character collision detection. More...
#include <collision_geometry.h>
Public Types | |
| using | Scalar = S |
Public Member Functions | |
| TaperedCapsuleT () | |
| bool | isApprox (const TaperedCapsuleT &other, const S &tol=Eps< S >(1e-4f, 1e-10)) const |
| Checks if the current capsule is approximately equal to another. | |
Public Attributes | |
| TransformT< S > | transformation |
| Transformation defining the orientation and starting point relative to the parent coordinate system. | |
| Vector2< S > | radius |
| Radii at the two endpoints of the capsule. | |
| size_t | parent |
| Parent joint to which the geometry is attached. | |
| S | length |
| Length of the collision geometry along the x-axis. | |
Tapered capsule collision geometry for character collision detection.
Defined by a transformation, length, and two radii at the endpoints, creating a capsule with potentially different radii at each end.
Definition at line 33 of file collision_geometry.h.
| using momentum::TaperedCapsuleT< S >::Scalar = S |
Definition at line 34 of file collision_geometry.h.
|
inline |
Definition at line 49 of file collision_geometry.h.
|
inlinenodiscard |
Checks if the current capsule is approximately equal to another.
Definition at line 58 of file collision_geometry.h.
| S momentum::TaperedCapsuleT< S >::length |
Length of the collision geometry along the x-axis.
Definition at line 47 of file collision_geometry.h.
Referenced by momentum::createCollisionCapsule(), momentum::TaperedCapsuleT< float >::isApprox(), momentum::CollisionPrimitiveT< float >::operator=(), and momentum::CollisionPrimitiveT< float >::toTaperedCapsule().
| size_t momentum::TaperedCapsuleT< S >::parent |
Parent joint to which the geometry is attached.
Definition at line 44 of file collision_geometry.h.
Referenced by momentum::createCollisionCapsule(), momentum::TaperedCapsuleT< float >::isApprox(), momentum::CollisionPrimitiveT< float >::operator=(), and momentum::CollisionPrimitiveT< float >::toTaperedCapsule().
| Vector2<S> momentum::TaperedCapsuleT< S >::radius |
Radii at the two endpoints of the capsule.
Definition at line 41 of file collision_geometry.h.
Referenced by momentum::createCollisionCapsule(), momentum::TaperedCapsuleT< float >::isApprox(), momentum::CollisionPrimitiveT< float >::operator=(), and momentum::CollisionPrimitiveT< float >::toTaperedCapsule().
| TransformT<S> momentum::TaperedCapsuleT< S >::transformation |
Transformation defining the orientation and starting point relative to the parent coordinate system.
Definition at line 38 of file collision_geometry.h.
Referenced by momentum::createCollisionCapsule(), momentum::TaperedCapsuleT< float >::isApprox(), momentum::CollisionPrimitiveT< float >::operator=(), and momentum::CollisionPrimitiveT< float >::toTaperedCapsule().