Writes all fields directly into the native struct reference p. For nested structs, use writeInto as well.
p
writeInto
@override void writeInto(RayC p) { position.writeInto(p.position); direction.writeInto(p.direction); }