Skip to content
Snippets Groups Projects
Commit 5ce3402f authored by D-AIRY's avatar D-AIRY
Browse files

Option to use trimesh or convex for prop_static

parent 24b39efd
Branches
Tags
No related merge requests found
......@@ -13,6 +13,12 @@ See the license in LICENSE
BEGIN_PROPTABLE(CPropStatic)
//! Масштаб модели
DEFINE_FIELD_FLOATFN(m_fScale, 0, "scale", "Scale", onSetScale, EDITOR_TEXTFIELD)
DEFINE_FIELD_BOOL(m_useTrimeshPhysics, 0, "use_trimesh", "Use trimesh physics", EDITOR_COMBOBOX)
COMBO_OPTION("Yes", "1")
COMBO_OPTION("No", "0")
EDITOR_COMBO_END()
END_PROPTABLE()
REGISTER_ENTITY(CPropStatic, prop_static);
......
......@@ -33,7 +33,7 @@ public:
protected:
void onSetScale(float fScale);
float m_fScale = 1.0f;
bool m_useTrimeshPhysics = true;
bool m_useTrimeshPhysics = false;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment