FBodyInstance::OverlapTest

Test if the bodyinstance overlaps with the specified shape at the specified position/rotation

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 OverlapTest
(
    const FVector & Position,
    const FQuat & Rotation,
    const struct FCollisionShape & CollisionShape,
    FMTDResult * OutMTD
) const

Remarks

Test if the bodyinstance overlaps with the specified shape at the specified position/rotation

Returns

true if the geometry associated with this body instance overlaps the query shape at the specified location/rotation

Parameters

Parameter

Description

Position

Position to place the shape at before testing

Rotation

Rotation to apply to the shape before testing

CollisionShape

Shape to test against

OutMTD

The minimum translation direction needed to push the shape out of this BodyInstance. (Optional)

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