mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 19:03:07 +02:00
Fix primitive shape collisions
This commit is contained in:
parent
b8b39b962d
commit
8f3918b5ba
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ void ShapeEntityItem::appendSubclassData(OctreePacketData* packetData, EncodeBit
|
||||||
// This value specifes how the shape should be treated by physics calculations.
|
// This value specifes how the shape should be treated by physics calculations.
|
||||||
// For now, all polys will act as spheres
|
// For now, all polys will act as spheres
|
||||||
ShapeType ShapeEntityItem::getShapeType() const {
|
ShapeType ShapeEntityItem::getShapeType() const {
|
||||||
return SHAPE_TYPE_ELLIPSOID;
|
return (_shape == entity::Shape::Cube) ? SHAPE_TYPE_BOX : SHAPE_TYPE_SPHERE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShapeEntityItem::setColor(const rgbColor& value) {
|
void ShapeEntityItem::setColor(const rgbColor& value) {
|
||||||
|
|
Loading…
Reference in a new issue