/** * @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) { }
public AbstractLockstep(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager) { this.deltaTime = deltaTime; this.config = config; this.physicsManager = physicsManager; }
public static AbstractLockstep NewInstance(FP deltaTime, TrueSyncConfig config, IPhysicsManagerBase physicsManager) { return(new DefaultLockstep(deltaTime, config, physicsManager)); }