engine
 
载入中...
搜索中...
未找到
枚举
ECollisionEnabled 命名空间参考

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

枚举

enum  Type { NoCollision , QueryOnly , PhysicsOnly , QueryAndPhysics }
 

详细描述

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

枚举类型说明

◆ Type

枚举值
NoCollision 

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)

QueryOnly 

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.

PhysicsOnly 

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

QueryAndPhysics 

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