Flix3DPlayerState class

Snapshot of the native first-person player's state.

Constructors

Flix3DPlayerState({required double x, required double height, required double z, required double yaw, required double pitch, required int collected, required int collectibleCount, required bool completed, required bool grounded})
Creates a native gameplay state snapshot.
const

Properties

collected → int
Number of collected shards.
final
collectibleCount → int
Total shards in this level.
final
completed → bool
Whether the exit has been reached after collecting all shards.
final
grounded → bool
Whether vertical velocity has settled back onto the ground.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Player jump height above the collision plane, in world units.
final
pitch → double
Camera pitch in radians.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → double
Player position on the world's X axis.
final
yaw → double
Camera yaw in radians.
final
z → double
Player position on the world's Z axis.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited