Default collision shap to hull per submesh instead of static

This commit is contained in:
David Rowe 2016-11-02 10:45:00 +13:00
parent 0c6ed67e3b
commit 10490a9fad

View file

@ -5419,7 +5419,7 @@ void Application::addAssetToWorldAddEntity(QString mapping) {
properties.setType(EntityTypes::Model);
properties.setName(mapping.right(mapping.length() - 1));
properties.setModelURL("atp:" + mapping);
properties.setShapeType(SHAPE_TYPE_STATIC_MESH);
properties.setShapeType(SHAPE_TYPE_SIMPLE_COMPOUND);
properties.setDynamic(false);
properties.setPosition(getMyAvatar()->getPosition() + getMyAvatar()->getOrientation() * glm::vec3(0.0f, 0.0f, -2.0f));
properties.setGravity(glm::vec3(0.0f, 0.0f, 0.0f));