FBodyInstance::Sweep

Trace a shape against just this bodyinstance

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h

Include

#include "PhysicsEngine/BodyInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp

Syntax

bool Sweep
(
    struct FHitResult & OutHit,
    const FVector & Start,
    const FVector & End,
    const FQuat & ShapeWorldRotation,
    const FCollisionShape & Shape,
    bool bTraceComplex
) const

Remarks

Trace a shape against just this bodyinstance

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 box

End

End location of the box

ShapeWorldRotation

The rotation applied to the collision shape in world space.

CollisionShape

Collision Shape

bTraceComplex

Should we trace against complex or simple collision of this body

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