Header <Components/BoxComponent.h>

#include "Components/BoxComponent.h"
Module: Engine Source: Engine/Source/Runtime/Engine/Classes/Components/BoxComponent.h

Includes 4

<CoreMinimal.h>
<UObject/ObjectMacros.h>
<Components/ShapeComponent.h>
<ShowFlags.h>

Contents

UBoxComponent
A box generally used for simple collision. Bounds are rendered as lines in the editor.
(uclass class : UShapeComponent)
Functions2 free functions
(namespace scope)

class UBoxComponent

class UBoxComponent : public UShapeComponentUCLASSClassGroup=Collisionhidecategories=(Object,LOD,Lighting,TextureStreaming)editinlinenewMinimalAPI
A box generally used for simple collision. Bounds are rendered as lines in the editor.

Member functions 9

SetBoxExtent
void SetBoxExtent(FVector InBoxExtent, bool bUpdateOverlaps=true);UFUNCTIONBlueprintCallableCategory=Components|Box
Change the box extent size. This is the unscaled size, before component scale is applied.
GetScaledBoxExtent
FVector GetScaledBoxExtent() const;UFUNCTIONBlueprintCallableCategory=Components|Box
GetUnscaledBoxExtent
FVector GetUnscaledBoxExtent() const;UFUNCTIONBlueprintCallableCategory=Components|Box
IsZeroExtent
virtual bool IsZeroExtent() const override;
CreateSceneProxy
virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
GetCollisionShape
virtual struct FCollisionShape GetCollisionShape(float Inflation = 0.0f) const override;
CalcBounds
virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
UpdateBodySetup
virtual void UpdateBodySetup() override;
InitBoxExtent
void InitBoxExtent(const FVector& InBoxExtent);
Sets the box extents without triggering a render or physics update.

Functions

Free functions 2

GetScaledBoxExtent
FVector UBoxComponent::GetScaledBoxExtent() const;
----------------- INLINES ---------------
GetUnscaledBoxExtent
FVector UBoxComponent::GetUnscaledBoxExtent() const;