Header <Components/CapsuleComponent.h>
#include "Components/CapsuleComponent.h"Includes 3
<CoreMinimal.h> |
<UObject/ObjectMacros.h> |
<Components/ShapeComponent.h> |
Contents
UCapsuleComponent | A capsule generally used for simple collision. Bounds are rendered as lines in the editor. (uclass class : UShapeComponent) |
Functions | 13 free functions (namespace scope) |
class UCapsuleComponent
class UCapsuleComponent : public UShapeComponentUCLASSClassGroup=Collisioneditinlinenewhidecategories=(Object,LOD,Lighting,TextureStreaming)MinimalAPIA capsule generally used for simple collision. Bounds are rendered as lines in the editor.
Member functions 23
| SetCapsuleSize | void SetCapsuleSize(float InRadius, float InHalfHeight, bool bUpdateOverlaps=true);UFUNCTIONBlueprintCallableCategory=Components|CapsuleChange the capsule size. This is the unscaled size, before component scale is applied. |
| SetCapsuleRadius | void SetCapsuleRadius(float Radius, bool bUpdateOverlaps=true);UFUNCTIONBlueprintCallableCategory=Components|CapsuleSet the capsule radius. This is the unscaled radius, before component scale is applied. If this capsule collides, updates touching array for owner actor. |
| SetCapsuleHalfHeight | void SetCapsuleHalfHeight(float HalfHeight, bool bUpdateOverlaps=true);UFUNCTIONBlueprintCallableCategory=Components|CapsuleSet the capsule half-height. This is the unscaled half-height, before component scale is applied. If this capsule collides, updates touching array for owner actor. |
| PostLoad | virtual void PostLoad() override; |
| CalcBounds | virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override; |
| CalcBoundingCylinder | virtual void CalcBoundingCylinder(float& CylinderRadius, float& CylinderHalfHeight) const override; |
| CreateSceneProxy | virtual FPrimitiveSceneProxy* CreateSceneProxy() override; |
| IsZeroExtent | virtual bool IsZeroExtent() const override; |
| GetCollisionShape | virtual struct FCollisionShape GetCollisionShape(float Inflation = 0.0f) const override; |
| AreSymmetricRotations | virtual bool AreSymmetricRotations(const FQuat& A, const FQuat& B, const FVector& Scale3D) const override; |
| UpdateBodySetup | virtual void UpdateBodySetup() override; |
| GetScaledCapsuleRadius | float GetScaledCapsuleRadius() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule radius scaled by the component scale. |
| GetScaledCapsuleHalfHeight | float GetScaledCapsuleHalfHeight() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule half-height scaled by the component scale. This includes both the cylinder and hemisphere cap. |
| GetScaledCapsuleHalfHeight_WithoutHemisphere | float GetScaledCapsuleHalfHeight_WithoutHemisphere() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule half-height minus radius (to exclude the hemisphere), scaled by the component scale. From the center of the capsule this is the vertical distance along the straight cylindrical portion to the… |
| GetScaledCapsuleSize | void GetScaledCapsuleSize(float& OutRadius, float& OutHalfHeight) const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule radius and half-height scaled by the component scale. Half-height includes the hemisphere end cap. |
| GetScaledCapsuleSize_WithoutHemisphere | void GetScaledCapsuleSize_WithoutHemisphere(float& OutRadius, float& OutHalfHeightWithoutHemisphere) const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule radius and half-height scaled by the component scale. Half-height excludes the hemisphere end cap. |
| GetUnscaledCapsuleRadius | float GetUnscaledCapsuleRadius() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule radius, ignoring component scaling. |
| GetUnscaledCapsuleHalfHeight | float GetUnscaledCapsuleHalfHeight() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule half-height, ignoring component scaling. This includes the hemisphere end cap. |
| GetUnscaledCapsuleHalfHeight_WithoutHemisphere | float GetUnscaledCapsuleHalfHeight_WithoutHemisphere() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule half-height minus radius (to exclude the hemisphere), ignoring component scaling. This excludes the hemisphere end cap. From the center of the capsule this is the vertical distance along the… |
| GetUnscaledCapsuleSize | void GetUnscaledCapsuleSize(float& OutRadius, float& OutHalfHeight) const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule radius and half-height scaled by the component scale. Half-height includes the hemisphere end cap. |
| GetUnscaledCapsuleSize_WithoutHemisphere | void GetUnscaledCapsuleSize_WithoutHemisphere(float& OutRadius, float& OutHalfHeightWithoutHemisphere) const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleReturns the capsule radius and half-height, ignoring component scaling. Half-height excludes the hemisphere end cap. |
| GetShapeScale | float GetShapeScale() const;UFUNCTIONBlueprintCallableCategory=Components|CapsuleGet the scale used by this shape. This is a uniform scale that is the minimum of any non-uniform scaling. |
| InitCapsuleSize | void InitCapsuleSize(float InRadius, float InHalfHeight);Sets the capsule size without triggering a render or physics update. This is the preferred method when initializing a component in a class constructor. |
Functions
Free functions 13
| SetCapsuleRadius | void UCapsuleComponent::SetCapsuleRadius(float Radius, bool bUpdateOverlaps);----------------- INLINES --------------- |
| SetCapsuleHalfHeight | void UCapsuleComponent::SetCapsuleHalfHeight(float HalfHeight, bool bUpdateOverlaps); |
| GetScaledCapsuleRadius | float UCapsuleComponent::GetScaledCapsuleRadius() const; |
| GetScaledCapsuleHalfHeight | float UCapsuleComponent::GetScaledCapsuleHalfHeight() const; |
| GetScaledCapsuleHalfHeight_WithoutHemisphere | float UCapsuleComponent::GetScaledCapsuleHalfHeight_WithoutHemisphere() const; |
| GetScaledCapsuleSize | void UCapsuleComponent::GetScaledCapsuleSize(float& OutRadius, float& OutHalfHeight) const; |
| GetScaledCapsuleSize_WithoutHemisphere | void UCapsuleComponent::GetScaledCapsuleSize_WithoutHemisphere(float& OutRadius, float& OutHalfHeightWithoutHemisphere) const; |
| GetUnscaledCapsuleRadius | float UCapsuleComponent::GetUnscaledCapsuleRadius() const; |
| GetUnscaledCapsuleHalfHeight | float UCapsuleComponent::GetUnscaledCapsuleHalfHeight() const; |
| GetUnscaledCapsuleHalfHeight_WithoutHemisphere | float UCapsuleComponent::GetUnscaledCapsuleHalfHeight_WithoutHemisphere() const; |
| GetUnscaledCapsuleSize | void UCapsuleComponent::GetUnscaledCapsuleSize(float& OutRadius, float& OutHalfHeight) const; |
| GetUnscaledCapsuleSize_WithoutHemisphere | void UCapsuleComponent::GetUnscaledCapsuleSize_WithoutHemisphere(float& OutRadius, float& OutHalfHeightWithoutHemisphere) const; |
| GetShapeScale | float UCapsuleComponent::GetShapeScale() const; |