Table of Contents

Interface IHitable

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public interface IHitable

Properties

AlwaysHittable

Gets or sets a value indicating whether [always hittable]. Set to true if you want object to be hit tested even it is not rendering.

bool AlwaysHittable { get; set; }

Property Value

bool

true if [always hittable]; otherwise, false.

IsHitTestVisible

Indicates, if this element should be hit-tested.
default is true

bool IsHitTestVisible { get; set; }

Property Value

bool

Methods

HitTest(HitTestContext, ref List<HitTestResult>)

bool HitTest(HitTestContext hitContext, ref List<HitTestResult> hits)

Parameters

hitContext HitTestContext

Contains all the hit test variables.

hits List<HitTestResult>

Returns

bool

Return all hitted details with distance from nearest to farest.