Esempio n. 1
0
        protected override void OnCreate()
        {
            HandlesToWaitFor = new NativeList <JobHandle>(16, Allocator.Persistent);
            FinalJobHandle   = new JobHandle();

            m_BuildPhysicsWorld = World.GetOrCreateSystem <KitchenBuildPhysicsWorld>();
            //  m_StepPhysicsWorld = World.GetOrCreateSystem<StepPhysicsWorld>();
            kitchenStepPhysicsWorldSystem = World.GetOrCreateSystem <KitchenStepPhysicsWorld>();
            m_ExportPhysicsWorld          = World.GetOrCreateSystem <KitchenExportPhysicsWorld>();
        }
Esempio n. 2
0
        protected override void OnCreate()
        {
            m_BuildPhysicsWorldSystem  = World.GetOrCreateSystem <KitchenBuildPhysicsWorld>();
            m_ExportPhysicsWorldSystem = World.GetOrCreateSystem <KitchenExportPhysicsWorld>();
            m_EndFramePhysicsSystem    = World.GetOrCreateSystem <KitchenEndFramePhysicsSystem>();

            var query = new EntityQueryDesc
            {
                All = new ComponentType[]
                {
                    typeof(ServerEntity),
                    typeof(CharacterMoveSetting),
                    typeof(UserCommand),
                    typeof(CharacterMovePredictedState),
                    typeof(TransformPredictedState),
                    typeof(VelocityPredictedState),
                    typeof(PhysicsCollider)
                }
            };

            m_CharacterControllersGroup = GetEntityQuery(query);
        }