![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Helper functions to get properties of a scaling vector. More...
Functions | |
| bool | IsNotScaled (Vec3Arg inScale) |
| Test if a scale is identity. | |
| bool | IsUniformScale (Vec3Arg inScale) |
| Test if a scale is uniform. | |
| bool | IsUniformScaleXZ (Vec3Arg inScale) |
| Test if a scale is uniform in XZ. | |
| float | ScaleConvexRadius (float inConvexRadius, Vec3Arg inScale) |
| Scale the convex radius of an object. | |
| bool | IsInsideOut (Vec3Arg inScale) |
| Test if a scale flips an object inside out (which requires flipping all normals and polygon windings) | |
| bool | IsZeroScale (Vec3Arg inScale) |
| Test if any of the components of the scale have a value below cMinScale. | |
| Vec3 | MakeNonZeroScale (Vec3Arg inScale) |
| Ensure that the scale for each component is at least cMinScale. | |
| Vec3 | MakeUniformScale (Vec3Arg inScale) |
| Get the average scale if inScale, used to make the scale uniform when a shape doesn't support non-uniform scale. | |
| Vec3 | MakeUniformScaleXZ (Vec3Arg inScale) |
| Average the scale in XZ, used to make the scale uniform when a shape doesn't support non-uniform scale in the XZ plane. | |
| bool | CanScaleBeRotated (QuatArg inRotation, Vec3Arg inScale) |
| Vec3 | RotateScale (QuatArg inRotation, Vec3Arg inScale) |
Helper functions to get properties of a scaling vector.
Checks in scale can be rotated to child shape
| inRotation | Rotation of child shape |
| inScale | Scale in local space of parent shape |
|
inline |
Test if a scale flips an object inside out (which requires flipping all normals and polygon windings)
|
inline |
Test if a scale is identity.
|
inline |
Test if a scale is uniform.
|
inline |
Test if a scale is uniform in XZ.
|
inline |
Test if any of the components of the scale have a value below cMinScale.
Ensure that the scale for each component is at least cMinScale.
Get the average scale if inScale, used to make the scale uniform when a shape doesn't support non-uniform scale.
Average the scale in XZ, used to make the scale uniform when a shape doesn't support non-uniform scale in the XZ plane.
Adjust scale for rotated child shape
| inRotation | Rotation of child shape |
| inScale | Scale in local space of parent shape |
|
inline |
Scale the convex radius of an object.