Bugfix : don't ignore interaction property on animated objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -65,6 +65,8 @@ ThreeDAnimation::ThreeDAnimation(const XMLNode &node)
|
||||
/** Creates a bullet rigid body for this animated model. */
|
||||
void ThreeDAnimation::createPhysicsBody(const std::string &shape)
|
||||
{
|
||||
if (m_interaction == "ghost") return;
|
||||
|
||||
// 1. Determine size of the object
|
||||
// -------------------------------
|
||||
Vec3 min, max;
|
||||
|
||||
@@ -58,6 +58,8 @@ TrackObject::TrackObject(const XMLNode &xml_node)
|
||||
std::string sound;
|
||||
xml_node.get("sound", &sound );
|
||||
|
||||
m_interaction = "static";
|
||||
xml_node.get("interaction", &m_interaction);
|
||||
xml_node.get("lod_group", &m_lod_group);
|
||||
|
||||
std::string type;
|
||||
|
||||
@@ -91,6 +91,8 @@ protected:
|
||||
/** For action trigger objects */
|
||||
std::string m_action;
|
||||
|
||||
std::string m_interaction;
|
||||
|
||||
public:
|
||||
TrackObject(const XMLNode &xml_node);
|
||||
TrackObject(const core::vector3df& pos, const core::vector3df& hpr,
|
||||
|
||||
Reference in New Issue
Block a user