public PlatformMovement( BackingBox BackingBox, IPlatformInputHandler InputHandler, int MaxSpeed, int MinSpeed, int JumpStrength, int GravityStrength, int Acceleration, int Decceleration, int AirAcceleration, int AirDecceleration, HitGroundBehavior HGB = HitGroundBehavior.None ) { this.BackingBox = BackingBox; this.InputHandler = InputHandler; this.MaxSpeed = MaxSpeed; this.MinSpeed = MinSpeed; this.JumpStrength = JumpStrength; this.GravityStrength = GravityStrength; this.Acceleration = Acceleration; this.Decceleration = Decceleration; this.AirAcceleration = AirAcceleration; this.AirDecceleration = AirDecceleration; MaxVelocityScaler = 1f; DeccelerationScaler = 1f; AccelerationScaler = 1f; JumpStrengthScaler = 1f; VelocityScaler = Vector3.One; hitGroundBehavior = HGB; }
public static PlatformMovement GetStaticPlatformMovement(BackingBox B, HitGroundBehavior HGB = HitGroundBehavior.None) { return(new PlatformMovement(B, new StaticPlatformInputHandler(), 1000, 30, 0, 1000, 0, 3000, 0, 0, HGB)); }