GravityForce2D class

Apply acceleration to velocity {value} pixel/seconds

Inheritance

Constructors

GravityForce2D({Vector2? value})

Properties

hashCode int
The hash code for this object.
no setterinherited
id ↔ dynamic
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Vector2
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transform(Vector2 velocity, double mass, double dt) Vector2
inherited

Operators

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