USkeletalMeshComponent::SweepComponent

Trace a shape against just this component.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::SweepComponent()

USkeletalMeshComponent::SweepComponent()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h

Include

#include "Components/SkeletalMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp

Syntax

virtual bool SweepComponent
(
    FHitResult & OutHit,
    const FVector Start,
    const FVector End,
    const FQuat & ShapRotation,
    const FCollisionShape & CollisionShape,
    bool bTraceComplex
)

Remarks

Trace a shape against just this component. Will trace against each body, returning as soon as any collision is found.

that this collision may not be the closest.

Returns

true if a hit is found

Parameters

Parameter

Description

OutHit

Information about hit against this component, if true is returned

Start

Start location of the trace

End

End location of the trace

ShapeWorldRotation

The rotation applied to the collision shape in world space

CollisionShape

Collision Shape

bTraceComplex

Whether or not to trace complex

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss