void ProxyEntity::updateLocation(const TimedMotionVector3f &newLocation, const TimedMotionQuaternion& newOrient, const BoundingSphere3f& newBounds) { SILOG(ogre,detailed,"UpdateLocation "<<this<<" to "<<newLocation.position()<<"; "<<newOrient.position()); setOgrePosition(Vector3d(newLocation.position())); setOgreOrientation(newOrient.position()); updateScale( newBounds.radius() ); checkDynamic(); }
void Entity::resetLocation(Time ti, const Location &newLocation) { SILOG(ogre,debug,"ResetLocation "<<this<<" to "<<newLocation.getPosition()<<"; "<<newLocation.getOrientation()); if (!getProxy().isStatic(ti)) { setStatic(false); } else { setOgrePosition(newLocation.getPosition()); setOgreOrientation(newLocation.getOrientation()); } }
void ProxyEntity::iUpdateLocation( ProxyObjectPtr proxy, const TimedMotionVector3f &newLocation, const TimedMotionQuaternion& newOrient, const BoundingSphere3f& newBounds, const SpaceObjectReference& sporef, Liveness::Token lt) { if (!lt) return; assert(proxy == mProxy); SILOG(ogre,detailed,"UpdateLocation "<<this<<" to "<<newLocation.position()<<"; "<<newOrient.position()); setOgrePosition(Vector3d(newLocation.position())); setOgreOrientation(newOrient.position()); updateScale( newBounds.radius() ); checkDynamic(); }
void ProxyEntity::extrapolateLocation(TemporalValue<Location>::Time current) { Location loc (getProxy().extrapolateLocation(current)); setOgrePosition(loc.getPosition()); setOgreOrientation(loc.getOrientation()); }