Namespace: DeltaEngine.Physics2D
Assembly: DeltaEngine.Physics2D (in DeltaEngine.Physics2D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Physics2D.Tests.Projectile2DTests
1 unit tests call DeltaEngine.Physics2D.Projectile2D.Damage
Assembly: DeltaEngine.Physics2D (in DeltaEngine.Physics2D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[Test, CloseAfterFirstFrame] public void CreateProjectile() { var bulletImpulse = new Vector2D(0.3f, 0.3f); const int BulletDamage = 10; var bullet = CreateBullet(bulletImpulse, BulletDamage); Assert.IsTrue(bullet.Get<PhysicsBody>().LinearVelocity.IsNearlyEqual(bulletImpulse / 1000000f)); Assert.AreEqual(BulletDamage, bullet.Damage); }
See Also