mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
init Shape::_mass in all ctors
This commit is contained in:
parent
0cc6f559d4
commit
06e1d4a8bc
1 changed files with 10 additions and 5 deletions
|
@ -81,17 +81,22 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// these ctors are protected (used by derived classes only)
|
// these ctors are protected (used by derived classes only)
|
||||||
Shape(Type type) : _type(type), _owningEntity(NULL), _boundingRadius(0.f), _translation(0.f), _rotation() {
|
Shape(Type type) : _type(type), _owningEntity(NULL),
|
||||||
|
_boundingRadius(0.f), _translation(0.f),
|
||||||
|
_rotation(), _mass(MAX_SHAPE_MASS) {
|
||||||
_id = getNextID();
|
_id = getNextID();
|
||||||
}
|
}
|
||||||
|
|
||||||
Shape(Type type, const glm::vec3& position)
|
Shape(Type type, const glm::vec3& position) :
|
||||||
: _type(type), _owningEntity(NULL), _boundingRadius(0.f), _translation(position), _rotation() {
|
_type(type), _owningEntity(NULL),
|
||||||
|
_boundingRadius(0.f), _translation(position),
|
||||||
|
_rotation(), _mass(MAX_SHAPE_MASS) {
|
||||||
_id = getNextID();
|
_id = getNextID();
|
||||||
}
|
}
|
||||||
|
|
||||||
Shape(Type type, const glm::vec3& position, const glm::quat& rotation)
|
Shape(Type type, const glm::vec3& position, const glm::quat& rotation) : _type(type), _owningEntity(NULL),
|
||||||
: _type(type), _owningEntity(NULL), _boundingRadius(0.f), _translation(position), _rotation(rotation) {
|
_boundingRadius(0.f), _translation(position),
|
||||||
|
_rotation(rotation), _mass(MAX_SHAPE_MASS) {
|
||||||
_id = getNextID();
|
_id = getNextID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue