ResistanceForce2D class

Apply resistence to velocity {value} pixel/seconds

Inheritance

Constructors

ResistanceForce2D({required dynamic id, required 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
override

Operators

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