mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +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
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue