struct property

StructType<RayCollisionD> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<RayCollisionD> struct = .new(
  factory: RayCollisionD.new,
  layout: .aligned<RayCollisionField>({
    .hit:      RBool(), // Did the ray hit something?
    .distance: RFloat(), // Distance to the nearest hit
    .point:    RStruct(Vector3D.struct), // Point of the nearest hit
    .normal:   RStruct(Vector3D.struct), // Surface normal of hit
  }),
);