Modified Files:
simgear/scene/model/ModelRegistry.cxx
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
simgear/scene/util/SGSceneUserData.hxx
orientation.getEulerDeg(_heading_deg, _pitch_deg, _roll_deg);
}
+void
+SGModelPlacement::setReferenceTime(const double& referenceTime)
+{
+ SGSceneUserData* userData;
+ userData = SGSceneUserData::getOrCreateSceneUserData(_transform);
+ SGSceneUserData::Velocity* vel = userData->getOrCreateVelocity();
+ vel->referenceTime = referenceTime;
+}
+
void
SGModelPlacement::setBodyLinearVelocity(const SGVec3d& linear)
{
double heading_deg);
void setOrientation(const SGQuatd& orientation);
+ void setReferenceTime(const double& referenceTime);
void setBodyLinearVelocity(const SGVec3d& velocity);
void setBodyAngularVelocity(const SGVec3d& velocity);
Velocity() :
linear(SGVec3d::zeros()),
angular(SGVec3d::zeros()),
+ referenceTime(0),
id(simgear::BVHNode::getNewId())
{}
SGVec3d linear;
SGVec3d angular;
+ double referenceTime;
simgear::BVHNode::Id id;
};
const Velocity* getVelocity() const