protected override void OnCreate() { base.OnCreate(); DynamicEntityGroup = GetEntityQuery(new EntityQueryDesc { All = new ComponentType[] { typeof(PhysicsVelocity), typeof(TransformPredictedState) // typeof(Translation), // typeof(Rotation) } }); StaticEntityGroup = GetEntityQuery(new EntityQueryDesc { All = new ComponentType[] { typeof(PhysicsCollider) }, Any = new ComponentType[] { typeof(LocalToWorld), typeof(TransformPredictedState) // typeof(Translation), // typeof(Rotation) }, None = new ComponentType[] { typeof(PhysicsVelocity), typeof(Parent) } }); //JointEntityGroup = GetEntityQuery(new EntityQueryDesc //{ // All = new ComponentType[] // { // typeof(PhysicsJoint) // } //}); m_EndFramePhysicsSystem = World.GetOrCreateSystem <KitchenEndFramePhysicsSystem>(); }
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); }