attempt to handle registration point in hull collisions

This commit is contained in:
Seth Alves 2015-03-30 11:22:31 -07:00
parent 90f51e7d4c
commit 8a5192c1d9

View file

@ -366,6 +366,9 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& info) {
// multiply each point by scale before handing the point-set off to the physics engine
for (int i = 0; i < _points.size(); i++) {
for (int j = 0; j < _points[i].size(); j++) {
// compensate for registraion
_points[i][j] += _model->getOffset();
// scale so the collision points match the model points
_points[i][j] *= scale;
}
}