RayCollision class
RayCollision, ray hit information
- Inheritance
-
- Object
- RaylibStruct<
RayCollision> - RaylibStructLiteral<
RayCollision> - RayCollision
Constructors
-
RayCollision({StructPointer<
RayCollision> ? op, bool hit = false, double distance = 0, Vector3? point, Vector3? normal}) - RayCollision.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- distance ↔ double
-
Distance to the nearest hit
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hit ↔ bool
-
Did the ray hit something?
getter/setter pair
- normal ↔ Vector3
-
Surface normal of hit
getter/setter pair
-
op
↔ StructPointer<
RayCollision> ? -
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
- point ↔ Vector3
-
Point of the nearest hit
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structName → String
-
The Dart-side type name of this struct
no setterinherited
Methods
-
clone(
) → RayCollision -
Returns a deep copy of this instance, preserving op if present.
override
-
copy(
) → RayCollision -
Returns a deep copy of this instance without op.
inherited
-
getOp(
) → StructPointer< RayCollision> -
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOpAndDispose(
) → StructPointer< RayCollision> -
Returns op and immediately disposes this struct.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDart(
RayCollision o) → RayCollision -
Copies the fields of
ointo this instance.override -
signature(
) → String -
Returns a human-readable representation of this struct.
override
-
structAllocateInto(
RaylibTemp< RaylibBase> temp, MemoryPointer<RType> p, String key) → void -
Allocates nested pointers into
tempunderkeyas needed.inherited -
structDispose(
) → void -
Marks this instance as disposed.
inherited
-
structOnOp(
void callback(StructPointer< RayCollision> p)) → void -
Calls
callbackwith op if it is set, otherwise no-ops.inherited -
structReadFrom(
MemoryPointer< RType> p) → void -
override
-
structSetTag(
String newTag) → RayCollision -
Sets RaylibTempStructState.tag to
newTag.inherited -
structSyncFromMemory(
) → void -
Syncs all fields from the memory. Requires op.
inherited
-
structSyncToMemory(
) → void -
Syncs all fields to the memory. Requires op.
inherited
-
structWriteInto(
MemoryPointer< RType> p) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
field_distance
→ StructValueField<
double, RFloat> -
Field descriptor for distance.
final
-
field_hit
→ StructValueField<
bool, RBool> -
Field descriptor for hit.
final
-
field_normal
→ StructValueField<
Vector3, RStruct> -
Field descriptor for normal.
final
-
field_point
→ StructValueField<
Vector3, RStruct> -
Field descriptor for point.
final
-
struct
→ StructType<
RayCollision> -
Describes the raw memory layout, construction, and pointer representation
of this struct type.
final
-
structLayout
→ StructLayout<
RayCollisionField> -
Raw memory layout of this object.
final