コード例 #1
0
 public static void ValidateMetalWireGuideData1(MetalWireGuideData data)
 {
     data.DragPoints.Length.Should().Be(2);
     data.Elasticity.Should().Be(0.99f);
     data.ElasticityFalloff.Should().Be(0.33f);
     data.Friction.Should().Be(0.55f);
     data.Height.Should().Be(25f);
     data.HitEvent.Should().Be(false);
     data.HitHeight.Should().Be(25);
     // i dont know where to set this...
     data.Image.Should().Be("");
     data.IsCollidable.Should().Be(true);
     data.IsReflectionEnabled.Should().Be(true);
     data.IsVisible.Should().Be(true);
     data.Material.Should().Be("");
     data.OverwritePhysics.Should().Be(true);
     data.PhysicsMaterial.Should().Be("");
     data.RotX.Should().Be(0f);
     data.RotY.Should().Be(0f);
     data.RotZ.Should().Be(0f);
     data.Scatter.Should().Be(0f);
     data.ShowInEditor.Should().Be(true);
     data.StaticRendering.Should().Be(true);
     data.Thickness.Should().Be(3f);
     data.Points.Should().Be(true);
 }
コード例 #2
0
 public static void ValidateMetalWireGuideData2(MetalWireGuideData data)
 {
     data.DragPoints.Length.Should().Be(3);
     data.Elasticity.Should().Be(0.25f);
     data.ElasticityFalloff.Should().Be(0.27f);
     data.Friction.Should().Be(0.42f);
     data.Height.Should().Be(30.2f);
     data.HitEvent.Should().Be(false);
     data.HitHeight.Should().Be(25.3f);
     data.Image.Should().Be("");
     data.IsCollidable.Should().Be(true);
     data.IsReflectionEnabled.Should().Be(true);
     data.IsVisible.Should().Be(false);
     data.Material.Should().Be("");
     data.OverwritePhysics.Should().Be(true);
     data.PhysicsMaterial.Should().Be("");
     data.RotX.Should().Be(1.57f);
     data.RotY.Should().Be(1.73f);
     data.RotZ.Should().Be(1.61f);
     data.Scatter.Should().Be(5f);
     data.ShowInEditor.Should().Be(true);
     data.StaticRendering.Should().Be(true);
     data.Thickness.Should().Be(2.5f);
 }