Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/CapsuleComponent.h |
Include |
#include "Components/CapsuleComponent.h" |
class UCapsuleComponent : public UShapeComponent
A capsule generally used for simple collision. Bounds are rendered as lines in the editor.
Name | Description | ||
---|---|---|---|
|
float |
CapsuleHalfHeight |
Half-height, from center of capsule to the end of top or bottom hemisphere. |
|
float |
CapsuleRadius |
Radius of cap hemispheres and center cylinder. This cannot be more than CapsuleHalfHeight. |
Name | Description | |
---|---|---|
|
UCapsuleComponent ( |
Name | Description | ||
---|---|---|---|
|
float |
GetScaledCapsuleHalfHeight() |
Returns the capsule half-height scaled by the component scale. |
|
float |
GetScaledCapsuleHalfHeight_WithoutHemisphere() |
Returns the capsule half-height minus radius (to exclude the hemisphere), scaled by the component scale. |
|
float |
GetScaledCapsuleRadius() |
Returns the capsule radius scaled by the component scale. |
|
GetScaledCapsuleSize ( |
Returns the capsule radius and half-height scaled by the component scale. |
|
|
GetScaledCapsuleSize_WithoutHemisphere ( |
Returns the capsule radius and half-height scaled by the component scale. |
|
|
float |
GetShapeScale() |
Get the scale used by this shape. |
|
float |
GetUnscaledCapsuleHalfHeight() |
Returns the capsule half-height, ignoring component scaling. This includes the hemisphere end cap. |
|
float |
GetUnscaledCapsuleHalfHeight_WithoutHemisphere() |
Returns the capsule half-height minus radius (to exclude the hemisphere), ignoring component scaling. |
|
float |
GetUnscaledCapsuleRadius() |
Returns the capsule radius, ignoring component scaling. |
|
GetUnscaledCapsuleSize ( |
Returns the capsule radius and half-height scaled by the component scale. |
|
|
GetUnscaledCapsuleSize_WithoutHemisphere ( |
Returns the capsule radius and half-height, ignoring component scaling. |
|
|
InitCapsuleSize ( |
Sets the capsule size without triggering a render or physics update. This is the preferred method when initializing a component in a class constructor. |
|
|
SetCapsuleHalfHeight ( |
Set the capsule half-height. |
|
|
SetCapsuleRadius ( |
Set the capsule radius. |
|
|
SetCapsuleSize ( |
Change the capsule size. This is the unscaled size, before component scale is applied. |
Name | Description | ||
---|---|---|---|
|
UpdateBodySetup() |
Update the body setup parameters based on shape information |
Name | Description | ||
---|---|---|---|
|
AreSymmetricRotations |
Returns true if the given transforms result in the same bounds, due to rotational symmetry. |
|
|
FPrimitiveSc... |
CreateSceneProxy() |
Creates a proxy to represent the primitive to the scene manager in the rendering thread. |
|
FCollisionSh... |
GetCollisionShape ( |
Return a CollisionShape that most closely matches this primitive. |
|
IsZeroExtent() |
This isn't bound extent, but for shape component to utilize extent is 0. |
Name | Description | ||
---|---|---|---|
|
CalcBoundingCylinder ( |
Calculate the axis-aligned bounding cylinder of the component (radius in X-Y, half-height along Z axis). |
|
|
FBoxSphereBo... |
CalcBounds ( |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. |
Name | Description | ||
---|---|---|---|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name | Description | ||
---|---|---|---|
|
float |
CapsuleHeight_DEPRECATED |