public void OnInitModule(IUnityAssetManager assetManager) { var sessionObjects = _contexts.session.commonSession; IEntityIdGenerator idGenerator = sessionObjects.EntityIdGenerator; // IPlayerInfo aiInfo = new PlayerInfo(TestUtility.TestToken, 1, "AI", TestUtility.PlayerSex); // PlayerEntityFactory.CreateNewPlayerEntity(_contexts.player, idGenerator.GetNextEntityId(), 0, SharedConfig.modelName,SingletonManager.Get<MapConfigManager>().SceneParameters.PlayerBirthPosition, aiInfo, false, true); // CreateVehicles(idGenerator); // CreateVehicles(EVehicleType.Ship, idGenerator); ((OfflineSnapshotSelector)_contexts.session.clientSessionObjects.SnapshotSelctor).Init(); PhysicsUtility.SetAutoSimulation(false); CreateSceneObject(); }
void InitPhysicsSimulation() { Physics.defaultContactOffset = 0.001f; PhysicsUtility.SetAutoSimulation(false); _logger.InfoFormat("InitPhysicsSimulation"); }