| FImplicitObject
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Box.h |
Include |
#include "Chaos/Box.h" |
template<class T, int d>
class TBox : public Chaos::FImplicitObject
Axis-aligned box collision geometry. Consists of a core AABB with a margin. The margin should be considered physically part of the box - it pads the faces and rounds the corners.
Name | Description | |
---|---|---|
|
TBox() |
This should never be used outside of creating a default for arrays. |
|
TBox ( |
|
|
TBox ( |
|
|
TBox |
This should never be used outside of creating a default for arrays. |
|
TBox |
Create a box with the specified size and margin (Min and Max is the desired size including the margin). |
Name | Description | |
---|---|---|
|
~TBox() |
Name | Description | ||
---|---|---|---|
|
TVector< T, ... |
Center() |
|
|
ClampedMargin ( |
Apply a limit to the specified margin that prevents the box inverting. |
|
|
ComputeLocalSamplePoints() |
Returns sample points centered about the origin. |
|
|
ComputeSamplePoints() |
Returns sample points at the current location of the box. |
|
|
Contains ( |
||
|
Contains ( |
||
|
TVector< T, ... |
Extents() |
|
|
FindClosestIntersectionImp |
||
|
TVector< T, ... |
FindClosestPoint ( |
|
|
TVector< T, ... |
FindGeometryOpposingNormal |
|
|
FindVertexPlanes |
Get an array of all the plane indices that belong to a vertex (up to MaxVertexPlanes). |
|
|
T |
GetArea() |
Area of the box. |
|
TVector< T, ... |
GetCenter() |
|
|
TVector< T, ... |
GetCenterOfMass() |
|
|
TVector< T, ... |
GetClosestEdgePosition |
Get the nearest point on an edge. |
|
GetClosestEdgeVertices |
||
|
GetEdgePlane |
||
|
GetEdgeVertex |
||
|
PMatrix< T, ... |
GetInertiaTensor ( |
|
|
PMatrix< T, ... |
GetInertiaTensor ( |
|
|
GetMostOpposingPlane ( |
Get the index of the plane that most opposes the normal. |
|
|
GetMostOpposingPlaneScaled |
||
|
const TPlane... |
GetPlane ( |
Get the plane at the specified index (e.g., indices from FindVertexPlanes) |
|
GetPlaneVertex |
Get the vertex index of one of the vertices making up the corners of the specified face. |
|
|
GetRadius() |
||
|
TRotation< T... |
GetRotationOfMass() |
|
|
const FVec3 |
GetVertex ( |
Get the vertex at the specified index (e.g., indices from GetPlaneVertexs) |
|
T |
GetVolume() |
Volume of the box. |
|
GetWindingOrder() |
Returns a winding order multiplier used in the manifold clipping and required when we have negative scales (See ImplicitObjectScaled) |
|
|
int |
LargestAxis() |
|
|
const TVecto... |
Max() |
Maximum extents. |
|
const TVecto... |
Min() |
Minimum extents. |
|
NumEdges() |
||
|
NumPlanes() |
||
|
NumPlaneVertices ( |
The number of vertices that make up the corners of the specified face. |
|
|
NumVertices() |
||
|
T |
PhiWithNormal |
Return the distance and normal is the closest point on the surface to Pos. Negative for penetration. |
|
T |
PhiWithNormalScaled |
|
|
Raycast |
||
|
RaycastFast |
||
|
SerializeAsAABB |
Some older classes used to use a TBox as a bounding box, but now use a TAABB. |
|
|
SerializeAsAABBs |
See comments on SerializeAsAABB. |
|
|
SerializeAsAABBs |
See comments on SerializeAsAABB. |
|
|
SerializeImp ( |
||
|
constexpr EI... |
StaticType() |
|
|
TVector< T, ... |
Support ( |
Returns a position on the shape. |
|
TVector< T, ... |
SupportCore |
Returns a position on the core shape excluding the margin. |
|
TVector< T, ... |
SupportCoreScaled |
Name | Description | ||
---|---|---|---|
|
const TAABB<... |
BoundingBox() |
Extents. |
|
TUniquePtr< ... |
Copy() |
|
|
GetTypeHash() |
||
|
Serialize ( |
||
|
Serialize ( |
||
|
ToString() |
Name |
Description |
---|---|
SNormals |
Structure data shared by all boxes and used for manifold creation. |
SStructureData |
|
SVertices |