HitResult

class HitResult(node: Node? = null) : RayHit

Stores the results of calls to Scene.hitTest and Scene.hitTestAll. Contains a node that was hit by the hit test, and associated information.

Constructors

Link copied to clipboard
constructor(node: Node? = null)

Properties

Link copied to clipboard
Link copied to clipboard
var node: Node
Link copied to clipboard

Functions

Link copied to clipboard
open fun getWorldPosition(): Float3

Get the position in world-space where the ray hit the collision shape.

Link copied to clipboard
open override fun reset()
Link copied to clipboard
open fun set(other: RayHit)