public SuperMeleeWorld() : base() { this.Collision += HandleWeaponCollisions; this.doSeperateIntersecting = true; this.contactBroadPhaseOnlyOnce = true; this.seperatingFactor = 1.6f; this.collisionStepsCount = 5; this.contactStepsCount = 5; Physics.MetersPerDistanceUnit = 10000; TargetRetriever.SetPossibleTargets(this.collidableBodies); this.rayTraceVelocityTolerance = 50; }
public virtual void OnCreation(GameResult gameResult, FactionInfo factionInfo) { this.targetRetriever = new TargetRetriever(); this.targetRetriever.OnSourceCreation(this); this.factionInfo = factionInfo; this.SetAllPositions(); this.controlableSounds.Created.Play(); controlers.OnCreation(gameResult, this); if (controlHandler != null) { controlHandler.OnCreation(this); } attachedEffectCollection.OnCreation(gameResult, this); created = true; gameResult.AddControlable(this); }
public override void OnDeserialization(object sender) { TargetRetriever.SetPossibleTargets(collidableBodies); base.OnDeserialization(sender); this.Collision += HandleWeaponCollisions; }