Пример #1
0
        public void UpdateForce_WhenAnAnchoredBungeeIsExpanded_TheForceGeneratorAppliesAForceToTheEndOfTheBungee()
        {
            MockParticle.Setup(p => p.AddForce(new Vector3(-4.5, -2.25, 4.5)));
            var forceGenerator = new AnchoredSpringForceGenerator(new Vector3(1.0, 3.0, 11.0), 1.5, 4.5, true);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
Пример #2
0
        public void UpdateForce_WhenAnAnchoredSpringIsCompressed_TheForceGeneratorAppliesAForceToTheEndOfTheSpring()
        {
            MockParticle.Setup(p => p.AddForce(new Vector3(4.5, 2.25, -4.5)));
            var forceGenerator = new AnchoredSpringForceGenerator(new Vector3(1.0, 3.0, 11.0), 1.5, 13.5);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
		public void UpdateForce_WhenAnAnchoredBungeeIsExpanded_TheForceGeneratorAppliesAForceToTheEndOfTheBungee()
		{
			MockParticle.Setup(p => p.AddForce(new Vector3(-4.5, -2.25, 4.5)));
			var forceGenerator = new AnchoredSpringForceGenerator(new Vector3(1.0, 3.0, 11.0), 1.5, 4.5, true);

			forceGenerator.UpdateForce(MockParticle.Object, 1.0);
		}
		public void UpdateForce_WhenAnAnchoredSpringIsCompressed_TheForceGeneratorAppliesAForceToTheEndOfTheSpring()
		{
			MockParticle.Setup(p => p.AddForce(new Vector3(4.5, 2.25, -4.5)));
			var forceGenerator = new AnchoredSpringForceGenerator(new Vector3(1.0, 3.0, 11.0), 1.5, 13.5);

			forceGenerator.UpdateForce(MockParticle.Object, 1.0);
		}
Пример #5
0
        public void UpdateForce_WhenAnAnchoredBungeeIsCompressed_NoForceIsAppliedToTheEndOfTheBungee()
        {
            var forceGenerator = new AnchoredSpringForceGenerator(new Vector3(1.0, 3.0, 11.0), 1.5, 13.5, true);

            forceGenerator.UpdateForce(MockParticle.Object, 1.0);
        }
		public void UpdateForce_WhenAnAnchoredBungeeIsCompressed_NoForceIsAppliedToTheEndOfTheBungee()
		{
			var forceGenerator = new AnchoredSpringForceGenerator(new Vector3(1.0, 3.0, 11.0), 1.5, 13.5, true);

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