unreal.CollisionEnabled

class unreal.CollisionEnabled

Bases: unreal.EnumBase

Enum used to describe what type of collision is enabled on a body.

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

NO_COLLISION

Will not create any representation in the physics engine. Cannot be used for spatial queries (raycasts, sweeps, overlaps) or simulation (rigid body, constraints). Best performance possible (especially for moving objects)

Type

0

PHYSICS_ONLY

Only used only for physics simulation (rigid body, constraints). Cannot be used for spatial queries (raycasts, sweeps, overlaps). Useful for jiggly bits on characters that do not need per bone detection. Performance gains by keeping data out of query tree

Type

2

QUERY_AND_PHYSICS

Can be used for both spatial queries (raycasts, sweeps, overlaps) and simulation (rigid body, constraints).

Type

3

QUERY_ONLY

Only used for spatial queries (raycasts, sweeps, and overlaps). Cannot be used for simulation (rigid body, constraints). Useful for character movement and things that do not need physical simulation. Performance gains by keeping data out of simulation tree.

Type

1