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

Capsule shape used for collision. 更多...

#include <TaperedCapsuleElem.h>

+ 类 FKTaperedCapsuleElem 继承关系图:

Public 成员函数

ENGINE_API float GetScaledCylinderLength (const FVector &Scale3D) const
 Returns the scaled length of the cylinder part of the Sphyl
 
ENGINE_API float GetScaledHalfLength (const FVector &Scale3D) const
 Returns half of the total scaled length of the Sphyl, which includes the scaled top and bottom caps
 
ENGINE_API void GetScaledRadii (const FVector &Scale3D, float &OutRadius0, float &OutRadius1) const
 Returns the scaled radius for this Sphyl, which is determined by the Max scale on X/Y and clamped by half the total length
 
- 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 成员函数

static ENGINE_API void DrawTaperedCapsuleSides (FPrimitiveDrawInterface *PDI, const FTransform &ElemTM, const FVector &InCenter0, const FVector &InCenter1, float InRadius0, float InRadius1, const FColor &Color)
 Draws just the sides of a tapered capsule specified by provided Spheres that can have different radii. 更多...
 

Public 属性

FVector Center
 Position of the capsule's origin
 
float Length
 Length of line-segment. 更多...
 
float Radius0
 Radius of the capsule start point
 
float Radius1
 Radius of the capsule end point
 
FRotator Rotation
 Rotation of the capsule
 
- 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
 

详细描述

Capsule shape used for collision.

Z axis is capsule axis. Has a start and end radius that can differ.

成员函数说明

◆ DrawTaperedCapsuleSides()

static ENGINE_API void FKTaperedCapsuleElem::DrawTaperedCapsuleSides ( FPrimitiveDrawInterface *  PDI,
const FTransform &  ElemTM,
const FVector &  InCenter0,
const FVector &  InCenter1,
float  InRadius0,
float  InRadius1,
const FColor &  Color 
)
static

Draws just the sides of a tapered capsule specified by provided Spheres that can have different radii.

Does not draw the spheres, just the sleeve. Extent geometry endpoints not necessarily coplanar with sphere origins (uses hull horizon) Otherwise uses the great-circle cap assumption.

类成员变量说明

◆ Length

float FKTaperedCapsuleElem::Length

Length of line-segment.

Add Radius0 and Radius 1 to find total length.


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