All pastes #455645 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-04-24 10:41 UTC
rendered paste body
   ShapeBase *pathShape = dynamic_cast<ShapeBase*>(Sim::findObject("shapeOfPath"));      if(pathShape)      if(pathShape->isServerObject())      {		Con::printf("Server!");		if(!mPathShape.isNull()){			mRigid.linPosition = mPathShape->getRenderTransform().getPosition() + mPathOffset;			Con::printf("true");		}		else{			Con::printf("false");		}	  }	  if(pathShape->isClientObject())      {		Con::printf("client!");		if(!mPathShape.isNull()){			mRigid.linPosition = mPathShape->getRenderTransform().getPosition() + mPathOffset;			Con::printf("true");		}		else{			Con::printf("false");		}	  }