void Yarn::InitFromShooter( GameObjectPtr inShooter, GameObjectPtr inTarget ) { SetPlayerId( inShooter->GetPlayerId() ); Vector3 forward = inTarget->GetLocation() - inShooter->GetLocation(); SetVelocity( forward * kMuzzleSpeed ); SetLocation( inShooter->GetLocation() ); mShooterCat = inShooter; mTargetCat = inTarget; }