Dart Documentationsystem_verletConstraint_Pin

Constraint_Pin class

class Constraint_Pin implements Constraint{
 /// position of the pin
 final Vector3 pin;
 final Vector3 a;

 Constraint_Pin(Vector3 v) : pin = v.clone(), a = v;

 relax(stepCoef) {
   a.setFrom(pin);
 }
}

Implements

Constraint

Constructors

new Constraint_Pin(Vector3 v) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
Constraint_Pin(Vector3 v) : pin = v.clone(), a = v;

Properties

final Vector3 a #

final Vector3 a

final Vector3 pin #

position of the pin

final Vector3 pin

Methods

dynamic relax(stepCoef) #

relax(stepCoef) {
 a.setFrom(pin);
}