Exemple #1
0
 /// <summary>
 /// Test if a sphere if (partially) inside or outside.
 /// </summary>
 public Intersection IsInsideFast(SphereShape sphere)
 {
     Runtime.ValidateObject(this);
     return(Frustum_IsInsideFast(handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle));
 }
Exemple #2
0
 /// <summary>
 /// Add a sphere sector.
 /// </summary>
 public void AddSphereSector(SphereShape sphere, Urho.Quaternion rotation, float angle, bool drawLines, Urho.Color color, bool depthTest = true)
 {
     Runtime.ValidateRefCounted(this);
     DebugRenderer_AddSphereSector(handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle, ref rotation, angle, drawLines, ref color, depthTest);
 }
Exemple #3
0
 public SphereShape(SphereShape sphere)
 {
     Runtime.Validate(typeof(SphereShape));
     handle = Sphere_Sphere0((object)sphere == null ? IntPtr.Zero : sphere.Handle);
     OnSphereCreated();
 }
Exemple #4
0
 /// <summary>
 /// Add a sphere.
 /// </summary>
 public void AddSphere(SphereShape sphere, Urho.Color color, bool depthTest = true)
 {
     Runtime.ValidateRefCounted(this);
     DebugRenderer_AddSphere(handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle, ref color, depthTest);
 }
Exemple #5
0
 /// <summary>
 /// Merge a sphere.
 /// </summary>
 public void Merge(SphereShape sphere)
 {
     Runtime.ValidateObject(this);
     Sphere_Merge15(handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle);
 }