Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/PhysicsCore/Public/CollisionShape.h |
Include |
#include "CollisionShape.h" |
struct FCollisionShape
Collision Shapes that supports Sphere, Capsule, Box, or Line
Name | Description | |
---|---|---|
|
FCollisionShape() |
Name | Description | ||
---|---|---|---|
|
GetBox() |
Utility function to get Box Extention |
|
|
float |
GetCapsuleAxisHalfLength() |
Get distance from center of capsule to center of sphere ends |
|
const float |
GetCapsuleHalfHeight() |
Utility function to get Capsule Half Height |
|
const float |
GetCapsuleRadius() |
Utility function to get Capsule Radius |
|
GetExtent() |
Utility function to return Extent of the shape |
|
|
const float |
GetSphereRadius() |
Utility function to get Sphere Radius |
|
IsBox() |
Is the shape currently a box? |
|
|
IsCapsule() |
Is the shape currently a capsule? |
|
|
IsLine() |
Is the shape currently a Line (Default)? |
|
|
IsNearlyZero() |
Return true if nearly zero. If so, it will back out and use line trace instead |
|
|
IsSphere() |
Is the shape currently a sphere? |
|
|
FCollisionSh... |
MakeBox ( |
Static utility function to make a box |
|
FCollisionSh... |
MakeCapsule ( |
Static utility function to make a capsule |
|
FCollisionSh... |
MakeCapsule ( |
Static utility function to make a capsule |
|
FCollisionSh... |
MakeSphere ( |
Static utility function to make a sphere |
|
constexpr fl... |
MinBoxExtent() |
|
|
constexpr fl... |
MinCapsuleAxisHalfHeight() |
|
|
constexpr fl... |
MinCapsuleRadius() |
|
|
constexpr fl... |
MinSphereRadius() |
|
|
SetBox ( |
Utility function to Set Box and dimension |
|
|
SetCapsule ( |
Utility function to set Capsule from Extent data |
|
|
SetCapsule ( |
Utility function to set Capsule with Radius and Half Height |
|
|
SetSphere ( |
Utility function to set Sphere with Radius |
Name |
Description |
---|---|
LineShape |
Used by engine in multiple places. |