FBodyInstance::OverlapTestForBodies

Test if the bodyinstance overlaps with the specified body instances

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "PhysicsEngine/BodyInstance.h"

Syntax

bool OverlapTestForBodies
(
    const FVector & Position,
    const FQuat & Rotation,
    const TArray< FBodyInstance * > & Bodies
) const

Remarks

Test if the bodyinstance overlaps with the specified body instances

Returns

true if any of the bodies passed in overlap with this

Parameters

Parameter

Description

Position

Position to place our shapes at before testing (shapes of this BodyInstance)

Rotation

Rotation to apply to our shapes before testing (shapes of this BodyInstance)

Bodies

The bodies we are testing for overlap with. These bodies will be in world space already

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