Property | Type | Description | |
---|---|---|---|
restingDistance | float | ||
shouldApproximateCollisionsWithPoints | bool | ||
stiffness | float | ||
tearSensitivity | float | ||
totalPointsToApproximateCollisionsWith | int |
Method | Description | |
---|---|---|
DistanceConstraint ( |
||
create ( |
creates a faux angle constraint by figuring out the required distance from a to c for the given angle
|
|
debugRender ( Batcher batcher ) : void | ||
setCollidesWithColliders ( bool collidesWithColliders ) : |
sets whether this Constraint should collide with standard Colliders
|
|
setShouldApproximateCollisionsWithPoints ( bool shouldApproximateCollisionsWithPoints ) : |
sets whether collisions should be approximated by points. This should be used for Constraints that need to collided on both sides. SAT only works with single sided collisions.
|
|
setTearSensitivity ( float tearSensitivity ) : |
sets the tear sensitivity. if the ratio of the current distance / restingDistance is greater than tearSensitivity the Constaint will be removed
|
|
solve ( ) : void |
Method | Description | |
---|---|---|
approximateCollisionsWithPoints ( int collidesWithLayers ) : void | ||
handleCollisions ( int collidesWithLayers ) : void | ||
preparePolygonForCollisionChecks ( Vector2 &midPoint ) : void |
public DistanceConstraint ( |
||
first | ||
second | ||
stiffness | float | |
distance | float | |
return | System |
public static create ( |
||
a | The alpha component. | |
center | Center. | |
c | C. | |
stiffness | float | Stiffness. |
angleInDegrees | float | Angle in degrees. |
return |
public debugRender ( Batcher batcher ) : void | ||
batcher | Batcher | |
return | void |
public setCollidesWithColliders ( bool collidesWithColliders ) : |
||
collidesWithColliders | bool | If set to |
return |
public setShouldApproximateCollisionsWithPoints ( bool shouldApproximateCollisionsWithPoints ) : |
||
shouldApproximateCollisionsWithPoints | bool | If set to |
return |
public setTearSensitivity ( float tearSensitivity ) : |
||
tearSensitivity | float | Tear sensitivity. |
return |
public bool shouldApproximateCollisionsWithPoints | ||
return | bool |