One convex hull, used for simplified collision. 更多...
#include <ConvexElem.h>
类 FKConvexElem 继承关系图:Public 成员函数 | |
| ENGINE_API void | BakeTransformToVerts () |
| Apply current element transform to verts, and reset transform to identity | |
| ENGINE_API FBox | CalcAABB (const FTransform &BoneTM, const FVector &Scale3D) const |
| Calculate a bounding box for this convex element with the specified transform and scale | |
| ENGINE_API void | ConvexFromBoxElem (const FKBoxElem &InBox) |
| Utility for setting this convex element to match a supplied box element. 更多... | |
| ENGINE_API void | GetPlanes (TArray< FPlane > &Planes) const |
| Get set of planes that define this convex hull | |
| FTransform | GetTransform () const |
| Get current transform applied to convex mesh vertices | |
| float | GetVolume (const FVector &Scale) const |
| Returns the volume of this element | |
| ENGINE_API bool | HullFromPlanes (const TArray< FPlane > &InPlanes, const TArray< FVector > &SnapVerts) |
| Utility for creating a convex hull from a set of planes. 更多... | |
| ENGINE_API void | Reset () |
| Reset the hull to empty all arrays | |
| void | SetTransform (const FTransform &InTransform) |
| Modify the transform to apply to convex mesh vertices NOTE: When doing this, BodySetup convex meshes need to be recooked - usually by calling InvalidatePhysicsData() and CreatePhysicsMeshes() | |
| ENGINE_API void | UpdateElemBox () |
| Updates internal ElemBox based on current value of VertexData | |
Public 成员函数 继承自 FKShapeElem | |
| ENGINE_API ECollisionEnabled::Type | GetCollisionEnabled () const |
| Get whether this shape should be considered for query or sim collision | |
| ENGINE_API bool | GetContributeToMass () const |
| Get whether this shape contributes to the mass of the body | |
| ENGINE_API const FName & | GetName () const |
| Get the user-defined name for this shape | |
| ENGINE_API void | SetContributeToMass (bool bInContributeToMass) |
| Set whether this shape will contribute to the mass of the body | |
| ENGINE_API void | SetName (const FName &InName) |
| Set the user-defined name for this shape | |
Public 属性 | |
| FBox | ElemBox |
| Bounding box of this convex hull. | |
| TArray< FVector > | VertexData |
| Array of indices that make up the convex hull. | |
Public 属性 继承自 FKShapeElem | |
| float | RestOffset |
| Offset used when generating contact points. 更多... | |
额外继承的成员函数 | |
Protected 成员函数 继承自 FKShapeElem | |
| void | CloneElem (const FKShapeElem &Other) |
| Helper function to safely clone instances of this shape element | |
One convex hull, used for simplified collision.
| ENGINE_API void FKConvexElem::ConvexFromBoxElem | ( | const FKBoxElem & | InBox | ) |
Utility for setting this convex element to match a supplied box element.
Also copies transform.
| ENGINE_API bool FKConvexElem::HullFromPlanes | ( | const TArray< FPlane > & | InPlanes, |
| const TArray< FVector > & | SnapVerts | ||
| ) |
Utility for creating a convex hull from a set of planes.
Will reset current state of this elem.