8#include "CapsuleComponent.generated.h"
15UCLASS(
ClassGroup=
"Collision", editinlinenew,
hidecategories=(
Object,LOD,Lighting,TextureStreaming), meta=(DisplayName=
"Capsule Collision", BlueprintSpawnableComponent), MinimalAPI)
25 UPROPERTY(EditAnywhere, BlueprintReadOnly,
export, Category=Shape, meta=(ClampMin="0", UIMin="0"))
26 float CapsuleHalfHeight;
32 UPROPERTY(EditAnywhere, BlueprintReadOnly,
export, Category=Shape, meta=(ClampMin="0", UIMin="0"))
35#if WITH_EDITORONLY_DATA
47 UFUNCTION(BlueprintCallable, Category=
"Components|Capsule")
70#if WITH_EDITORONLY_DATA
98 UFUNCTION(BlueprintCallable, Category=
"Components|Capsule")
184 CapsuleRadius = FMath::Max(0.f,
InRadius);
202inline float UCapsuleComponent::GetScaledCapsuleRadius()
const
205 return CapsuleRadius *
UE_REAL_TO_FLOAT(ComponentScale.
X < ComponentScale.
Y ? ComponentScale.
X : ComponentScale.
Y);
208inline float UCapsuleComponent::GetScaledCapsuleHalfHeight()
const
213inline float UCapsuleComponent::GetScaledCapsuleHalfHeight_WithoutHemisphere()
const
231inline float UCapsuleComponent::GetUnscaledCapsuleRadius()
const
233 return CapsuleRadius;
236inline float UCapsuleComponent::GetUnscaledCapsuleHalfHeight()
const
238 return CapsuleHalfHeight;
241inline float UCapsuleComponent::GetUnscaledCapsuleHalfHeight_WithoutHemisphere()
const
243 return CapsuleHalfHeight - CapsuleRadius;
258inline float UCapsuleComponent::GetShapeScale()
const
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UE_REAL_TO_FLOAT(argument)
Definition LargeWorldCoordinates.h:30
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
@ UpdateBodySetup
Definition BoxComponent.cpp:94
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
Definition Archive.h:1208
Definition PrimitiveSceneProxy.h:296
ENGINE_API FBox CalcBounds(const FVector &P0, const FVector &P1, const FVector &P2, const FVector &P3)
Definition BezierUtilities.cpp:26
FIntermediate3DTransform GetComponentTransform(const UObject *Object)
Definition MovieSceneTracksCustomAccessors.cpp:18
Definition CollisionShape.h:21
float HalfHeight
Definition CollisionShape.h:47
float Radius
Definition CollisionShape.h:41
static constexpr UE_FORCEINLINE_HINT T Max3(const T A, const T B, const T C)
Definition UnrealMathUtility.h:551
Definition UnrealType.h:6865
Definition BoxSphereBounds.h:25
T Y
Definition Vector.h:65
T X
Definition Vector.h:62