summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physSystem.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-17 17:22:15 +0100
committerLéo Lam <leo@leolam.fr>2022-01-17 17:22:27 +0100
commitddef936b26c17b6873607a8f0b0881c48a00785d (patch)
treeb3e058e6439b0cda325df972ba1c867ed2fbd7eb /src/KingSystem/Physics/System/physSystem.cpp
parenta2cba75b19b468f5f0d5ab98f57c07a1c7b2c103 (diff)
ksys/phys: Add RigidBody::isEntity to make certain checks clearer
The pattern we want to use is: ``` if (isEntity()) do entity stuff (e.g. get entity motion accessor) ``` or ``` if (!isEntity()) return; do entity stuff ``` That's clearer than ``` if (isSensor()) return; do entity stuff ``` because the fact that !isSensor() is equivalent to isEntity() is not always immediately clear.
Diffstat (limited to 'src/KingSystem/Physics/System/physSystem.cpp')
0 files changed, 0 insertions, 0 deletions