RayHit

from acron.world import RayHit
class RayHit(bullet_node, position, normal, fraction: float = 0.0)

Bases: object

Result of a ray/sweep query – Godot’s collision dictionary, flattened.

fraction is the [0,1] position along the sweep/ray where contact happened (0 for a ray at the origin); collide-and-slide uses it to stop at the contact.

Inheritance diagram

digraph inheritance9696cbbc78 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "RayHit" [URL="acron.world.RayHit.html#acron.world.RayHit",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Result of a ray/sweep query -- Godot's collision dictionary, flattened."]; }
bullet_node
property collider

The owning game object (via owner_of()), or the raw Bullet node.

fraction
normal
position