Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public DefaultLockstep(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager) : base(deltaTime, config, physicsManager)
 {
 }
Ejemplo n.º 3
0
 public AbstractLockstep(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager)
 {
     this.deltaTime      = deltaTime;
     this.config         = config;
     this.physicsManager = physicsManager;
 }
Ejemplo n.º 4
0
 public static AbstractLockstep NewInstance(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager)
 {
     return(new DefaultLockstep(deltaTime, config, physicsManager));
 }