engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
FCollisionShape结构体 参考

Collision Shapes that supports Sphere, Capsule, Box, or Line 更多...

#include <CollisionShape.h>

Public 成员函数

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
 

静态 Public 成员函数

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
 

Public 属性

union {
}; 
 Union that supports up to 3 floats
 

静态 Public 属性

static struct FCollisionShape LineShape
 Used by engine in multiple places. 更多...
 

详细描述

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

struct FCollisionShape FCollisionShape::LineShape
static

Used by engine in multiple places.

Since LineShape doesn't need any dimension, declare once and used by all codes.


该结构体的文档由以下文件生成: