Свойство | Type | Description | |
---|---|---|---|
collisionMargin | float | ||
maximumRadius | float | ||
minimumRadius | float |
Méthode | Description | |
---|---|---|
ComputeCenter ( ) : Vector3 |
Computes the center of the shape. This can be considered its center of mass.
|
|
ComputeCenter ( float &volume ) : Vector3 |
Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.
|
|
ComputeDistributionInformation ( ShapeDistributionInformation &shapeInfo ) : void | ||
ComputeMaximumRadius ( ) : float |
Computes the maximum radius of the shape. This is often larger than the actual maximum radius; it is simply an approximation that avoids underestimating.
|
|
ComputeMinimumRadius ( ) : float |
Computes the minimum radius of the shape. This is often smaller than the actual minimum radius; it is simply an approximation that avoids overestimating.
|
|
ComputeVolume ( ) : float |
Computes the volume of the shape.
|
|
ComputeVolumeDistribution ( ) : |
Computes the volume distribution of the shape. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.
|
|
ComputeVolumeDistribution ( float &volume ) : |
Computes the volume distribution of the shape as well as its volume. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.
|
|
GetBoundingBox ( |
Gets the bounding box of the shape given a transform.
|
|
GetExtremePoint ( Vector3 direction, |
Gets the extreme point of the shape in world space in a given direction with margin expansion.
|
|
GetExtremePointWithoutMargin ( Vector3 direction, |
Gets the extreme point of the shape in world space in a given direction.
|
|
GetLocalBoundingBox ( |
Gets the bounding box of the convex shape transformed first into world space, and then into the local space of another affine transform.
|
|
GetLocalExtremePoint ( Vector3 direction, Vector3 &extremePoint ) : void |
Gets the extreme point of the shape in local space in a given direction with margin expansion.
|
|
GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void |
Gets the extreme point of the shape in local space in a given direction.
|
|
GetSweptBoundingBox ( |
Computes a bounding box for the shape and expands it.
|
|
GetSweptLocalBoundingBox ( |
Gets the bounding box of the convex shape transformed first into world space, and then into the local space of another affine transform.
|
|
RayTest ( Ray &ray, |
Gets the intersection between the convex shape and the ray.
|
Méthode | Description | |
---|---|---|
OnShapeChanged ( ) : void |
public ComputeCenter ( float &volume ) : Vector3 | ||
volume | float | Volume of the shape. |
Résultat | Vector3 |
public ComputeDistributionInformation ( ShapeDistributionInformation &shapeInfo ) : void | ||
shapeInfo | ShapeDistributionInformation | |
Résultat | void |
public abstract ComputeMaximumRadius ( ) : float | ||
Résultat | float |
public abstract ComputeMinimumRadius ( ) : float | ||
Résultat | float |
public ComputeVolumeDistribution ( ) : |
||
Résultat |
public ComputeVolumeDistribution ( float &volume ) : |
||
volume | float | Volume of the shape. |
Résultat |
public GetBoundingBox ( |
||
shapeTransform | Transform to use. | |
boundingBox | BoundingBox | Bounding box of the transformed shape. |
Résultat | void |
public GetExtremePoint ( Vector3 direction, |
||
direction | Vector3 | Direction to find the extreme point in. |
shapeTransform | Transform to use for the shape. | |
extremePoint | Vector3 | Extreme point on the shape. |
Résultat | void |
public GetExtremePointWithoutMargin ( Vector3 direction, |
||
direction | Vector3 | Direction to find the extreme point in. |
shapeTransform | Transform to use for the shape. | |
extremePoint | Vector3 | Extreme point on the shape. |
Résultat | void |
public GetLocalBoundingBox ( |
||
shapeTransform | Transform to use to put the shape into world space. | |
spaceTransform | Used as the frame of reference to compute the bounding box. /// In effect, the shape is transformed by the inverse of the space transform to compute its bounding box in local space. | |
boundingBox | BoundingBox | Bounding box in the local space. |
Résultat | void |
public GetLocalExtremePoint ( Vector3 direction, Vector3 &extremePoint ) : void | ||
direction | Vector3 | Direction to find the extreme point in. |
extremePoint | Vector3 | Extreme point on the shape. |
Résultat | void |
public abstract GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void | ||
direction | Vector3 | Direction to find the extreme point in. |
extremePoint | Vector3 | Extreme point on the shape. |
Résultat | void |
public GetSweptBoundingBox ( |
||
transform | Transform to use to position the shape. | |
sweep | Vector3 | Extra to add to the bounding box. |
boundingBox | BoundingBox | Expanded bounding box. |
Résultat | void |
public GetSweptLocalBoundingBox ( |
||
shapeTransform | Transform to use to put the shape into world space. | |
spaceTransform | Used as the frame of reference to compute the bounding box. /// In effect, the shape is transformed by the inverse of the space transform to compute its bounding box in local space. | |
sweep | Vector3 | Vector to expand the bounding box with in local space. |
boundingBox | BoundingBox | Bounding box in the local space. |
Résultat | void |
public RayTest ( Ray &ray, |
||
ray | Ray | Ray to test. |
transform | Transform of the convex shape. | |
maximumLength | float | Maximum distance to travel in units of the ray direction's length. |
hit | Ray hit data, if any. | |
Résultat | bool |