Exemple #1
0
        /**
         * @brief Returns true if the given layers can collide.
         *
         * @param layerA Layer of the first object
         * @param layerB Layer of the second object
         **/
        public static bool CollisionEnabled(int layerA, int layerB)
        {
            TrueSyncConfig tsConfig = SyncFrameManager.Config;

            if (tsConfig == null)
            {
                return(true);
            }

            return(!tsConfig.GetIgnoreLayerCollision(layerA, layerB));
        }
 public DefaultLockstep(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager) : base(deltaTime, config, physicsManager)
 {
 }
Exemple #3
0
 public AbstractLockstep(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager)
 {
     this.deltaTime      = deltaTime;
     this.config         = config;
     this.physicsManager = physicsManager;
 }
Exemple #4
0
 public static AbstractLockstep NewInstance(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager)
 {
     return(new DefaultLockstep(deltaTime, config, physicsManager));
 }