SoftBody class
Simple vehicle helper class with spherical rigid body wheels.
- Implementers
Constructors
- SoftBody.new({required ShapeType shape, double mass = 1, double stiffness = 100, int numOfParticles = 18})
Properties
-
constraints
↔ List<
Constraint> -
The constraints.
getter/setter pair
- coordinateSystem ↔ Vector3
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mass ↔ double
-
total mass of the body
getter/setter pair
-
particleBodies
↔ Map<
String, Body> -
The bodies of the wheels.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape ↔ ShapeType
-
shape of the body
getter/setter pair
- stiffness ↔ double
-
getter/setter pair
Methods
-
addToWorld(
World world) → void - Add the vehicle including its constraints to the world.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeFromWorld(
World world) → void - Remove the vehicle including its constraints from the world.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited