1
0
Fork 0

Set the motion transform id in the collection step.

Modified Files:
	src/FDM/groundcache.cxx
This commit is contained in:
frohlich 2009-03-05 06:07:08 +00:00 committed by Tim Moore
parent b120d9dfb3
commit d2466d605f

View file

@ -143,10 +143,6 @@ public:
// Look for a velocity note
const SGSceneUserData::Velocity* velocity = getVelocity(transform);
// ... no velocity of there is only zero velocity
if (velocity && velocity->linear == SGVec3d::zeros() &&
velocity->angular == SGVec3d::zeros())
velocity = 0;
SGVec3d center = _center;
_center = SGVec3d(inverseMatrix.preMult(_center.osg()));
@ -169,6 +165,7 @@ public:
bvhTransform->setAngularVelocity(velocity->angular);
bvhTransform->setReferenceTime(_startTime);
bvhTransform->setEndTime(_endTime);
bvhTransform->setId(velocity->id);
mSubTreeCollector.popNodeList(parentNodeList, bvhTransform);
} else {