BodyUpdate class

Updates one or more properties of an existing body.

Inheritance

Constructors

BodyUpdate({required String id, double? mass, double? radius, Vec2? position, Vec2? velocity, bool? alive, String? label, String? kind, int? colorValue})
Creates a body-update edit.
const

Properties

alive → bool?
Optional alive/dead flag.
final
colorValue → int?
Optional ARGB color value.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Identifier of the body to modify.
final
kind → String?
Optional body kind/category tag.
final
label → String?
Optional human-readable label.
final
mass → double?
Optional updated mass value.
final
position → Vec2?
Optional updated position.
final
radius → double?
Optional updated radius value.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
velocity → Vec2?
Optional updated velocity.
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