public static void ServerSendDebugPhysicsTesting(IPhysicsShape physicsShape) { var wrappedShape = PhysicsShapeRemoteDataHelper.Wrap(physicsShape); var allPlayers = Server.Characters.EnumerateAllPlayerCharacters(onlyOnline: true, exceptSpectators: false); instance.CallClient( allPlayers, _ => _.ClientRemote_ProcessServerDebugPhysicsTesting(wrappedShape)); }
private void ClientRemote_ProcessServerDebugPhysicsTesting(BasePhysicsShapeRemoteData wrappedShape) { var shape = PhysicsShapeRemoteDataHelper.Unwrap(wrappedShape); ClientComponentPhysicsSpaceVisualizer.ProcessServerDebugPhysicsTesting(shape); }