public void TestPointingAway() { Assert.IsFalse( Ray3Plane3Collider.FindContacts( new Vector3(0.0f, 100.0f, 0.0f), Vector3.Up, Vector3.Zero, Vector3.Up ).HasContact ); }
public void TestPointingTowards() { LineContacts contacts = Ray3Plane3Collider.FindContacts( new Vector3(0.0f, 100.0f, 0.0f), Vector3.Down, Vector3.Zero, Vector3.Up ); Assert.That( contacts.EntryTime, Is.EqualTo(100.0f).Within(Specifications.MaximumDeviation).Ulps ); }