Example #1
0
        public void UpdateForce_WhenABungeeIsExpanded_TheForceGeneratorAppliesAForceToTheEndOfTheBungee()
        {
            MockParticle.Setup(p => p.AddForce(new Vector3(-4.5, -2.25, 4.5)));
            var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 4.5, true);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
Example #2
0
        public void UpdateForce_WhenASpringIsCompressed_TheForceGeneratorAppliesAForceToTheEndOfTheSpring()
        {
            MockParticle.Setup(p => p.AddForce(new Vector3(4.5, 2.25, -4.5)));
            var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 13.5);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
		public void UpdateForce_WhenABungeeIsExpanded_TheForceGeneratorAppliesAForceToTheEndOfTheBungee()
		{
			MockParticle.Setup(p => p.AddForce(new Vector3(-4.5, -2.25, 4.5)));
			var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 4.5, true);

			forceGenerator.UpdateForce(MockParticle.Object, 1.0);
		}
		public void UpdateForce_WhenASpringIsCompressed_TheForceGeneratorAppliesAForceToTheEndOfTheSpring()
		{
			MockParticle.Setup(p => p.AddForce(new Vector3(4.5, 2.25, -4.5)));
			var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 13.5);

			forceGenerator.UpdateForce(MockParticle.Object, 1.0);
		}
Example #5
0
        public void UpdateForce_WhenABungeeIsCompressed_NoForceIsAppliedToTheEndOfTheBungee()
        {
            var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 13.5, true);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
		public void UpdateForce_WhenABungeeIsCompressed_NoForceIsAppliedToTheEndOfTheBungee()
		{
			var forceGenerator = new SpringForceGenerator(MockOtherParticle.Object, 1.5, 13.5, true);

			forceGenerator.UpdateForce(MockParticle.Object, 1.0);
		}