class Gizmo.GizmoHitbox
Contains functions to add objects to the immediate mode Scene. This is an instantiable class so it's possible to add extensions.
public void TrySetHovered( float distance )
If this distance is closer than our previous best, this path will become the hovered path
public void TrySetHovered( Vector3 position )
If this distance is closer than our previous best, this path will become the hovered path
public void Sphere( Sphere sphere )
A sphere hitbox
public void BBox( BBox bounds )
A bounding box hitbox
public void Circle( Vector3 center, Vector3 forward, float outerRadius, float innerRadius = 0 )
A 2d circle hitbox, on a plane
public void Model( Model model )
A model hitbox
public void Sprite( Vector3 center, float size, bool worldspace = True )
A 2d sprite hitbox
public void AddPotentialLine( ref Vector3 p0, ref Vector3 p1, float thickness )
If we're in a hitbox linescope we'll distance this test vs the current ray. If not, we'll return immediately. This is automatically called when rendering lines
public bool Debug { get; }
😔 No documentation found.
public float DepthBias { get; set; }
😔 No documentation found.
public void Model( Model model, float maxDistance = 10000 )
😔 No documentation found.
public IDisposable LineScope( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.