Collision Shapes that supports Sphere, Capsule, Box, or Line
更多...
#include <CollisionShape.h>
|
|
FVector | GetBox () const |
| | Utility function to get Box Extention
|
| |
|
float | GetCapsuleAxisHalfLength () const |
| | Get distance from center of capsule to center of sphere ends
|
| |
|
const float | GetCapsuleHalfHeight () const |
| | Utility function to get Capsule Half Height
|
| |
|
const float | GetCapsuleRadius () const |
| | Utility function to get Capsule Radius
|
| |
|
FVector | GetExtent () const |
| | Utility function to return Extent of the shape
|
| |
|
const float | GetSphereRadius () const |
| | Utility function to get Sphere Radius
|
| |
|
bool | IsBox () const |
| | Is the shape currently a box?
|
| |
|
bool | IsCapsule () const |
| | Is the shape currently a capsule?
|
| |
|
bool | IsLine () const |
| | Is the shape currently a Line (Default)?
|
| |
| bool | IsNearlyZero () const |
| | Return true if nearly zero. 更多...
|
| |
|
bool | IsSphere () const |
| | Is the shape currently a sphere?
|
| |
|
void | SetBox (const FVector &HalfExtent) |
| | Utility function to Set Box and dimension
|
| |
|
void | SetCapsule (const float Radius, const float HalfHeight) |
| | Utility function to set Capsule with Radius and Half Height
|
| |
|
void | SetCapsule (const FVector &Extent) |
| | Utility function to set Capsule from Extent data
|
| |
|
void | SetSphere (const float Radius) |
| | Utility function to set Sphere with Radius
|
| |
|
|
static FCollisionShape | MakeBox (const FVector &BoxHalfExtent) |
| | Static utility function to make a box
|
| |
|
static FCollisionShape | MakeCapsule (const float CapsuleRadius, const float CapsuleHalfHeight) |
| | Static utility function to make a capsule
|
| |
|
static FCollisionShape | MakeCapsule (const FVector &Extent) |
| | Static utility function to make a capsule
|
| |
|
static FCollisionShape | MakeSphere (const float SphereRadius) |
| | Static utility function to make a sphere
|
| |
|
|
union { |
| }; | |
| | Union that supports up to 3 floats
|
| |
Collision Shapes that supports Sphere, Capsule, Box, or Line
◆ IsNearlyZero()
| bool FCollisionShape::IsNearlyZero |
( |
| ) |
const |
|
inline |
Return true if nearly zero.
If so, it will back out and use line trace instead
◆ LineShape
Used by engine in multiple places.
Since LineShape doesn't need any dimension, declare once and used by all codes.
该结构体的文档由以下文件生成: