Class GazeCollision
GazeCollision.
Inheritance
GazeCollision
Implements
Inherited Members
Namespace: Evergine.Components.Toolkit
Assembly: Evergine.Components.dll
Syntax
public class GazeCollision : Component, IDependencyObject
Fields
gazeBehavior
gazeBehavior.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected GazeBehavior gazeBehavior
Field Value
Type | Description |
---|---|
GazeBehavior |
Properties
NormalAligned
Gets or sets a value indicating whether normalAligned.
Declaration
[RenderProperty(Tooltip = "Indicate whether cursor will be aligned with the surfaces or no in otherwise")]
public bool NormalAligned { get; set; }
Property Value
Type | Description |
---|---|
bool |
SurfaceOffset
Gets or sets surfaceOffset.
Declaration
[RenderProperty(Tooltip = "Offset value in meters between the surface and cursor")]
public float SurfaceOffset { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
CheckCursorCollision(ref Ray, float, out CursorHit)
Check cursor collision.
Declaration
public bool CheckCursorCollision(ref Ray ray, float rayDistance, out GazeCollision.CursorHit cursorHit)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray | ray cast. |
float | rayDistance | The ray distance to test. |
GazeCollision.CursorHit | cursorHit | The cursor hit structure. |
Returns
Type | Description |
---|---|
bool | True if there are collision with an object. |