mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
compute collision group for entity
This commit is contained in:
parent
ec0b4a956a
commit
8e61a10bcf
1 changed files with 8 additions and 0 deletions
|
@ -521,5 +521,13 @@ QString EntityMotionState::getName() {
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
int16_t EntityMotionState::computeCollisionGroup() {
|
int16_t EntityMotionState::computeCollisionGroup() {
|
||||||
|
switch (computeObjectMotionType()){
|
||||||
|
case MOTION_TYPE_STATIC:
|
||||||
|
return COLLISION_GROUP_STATIC;
|
||||||
|
case MOTION_TYPE_KINEMATIC:
|
||||||
|
return COLLISION_GROUP_KINEMATIC;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
return COLLISION_GROUP_DEFAULT;
|
return COLLISION_GROUP_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue