public DeathCloudParticle(ContentManager Content, GameUnit centerX, GameUnit centerY, VelocityUnit speed, DegreesUnit angle) { this.centerX = centerX - Units.HalfTile; this.centerY = centerY - Units.HalfTile; this.speed = speed; offset = new PolarVector(0, angle); sprite = new AnimatedSprite(Content, SpriteName, Units.TileToPixel(SourceX), Units.TileToPixel(SourceY), Units.TileToPixel(SourceWidth), Units.TileToPixel(SourceHeight), Fps, NumFrames); }
public ConstantAccelerator(AccelerationUnit acceleration, VelocityUnit maxVelocity) { this.acceleration = acceleration; this.maxVelocity = maxVelocity; }
public BidirectionalAccelerators(AccelerationUnit acceleration, VelocityUnit maxVelocity) { positive = new ConstantAccelerator(acceleration, maxVelocity); negative = new ConstantAccelerator(-acceleration, -maxVelocity); }
public Kinematics(GameUnit position, VelocityUnit velocity) { this.position = position; this.velocity = velocity; }