프로퍼티 | 타입 | 설명 | |
---|---|---|---|
restingDistance | float | ||
shouldApproximateCollisionsWithPoints | bool | ||
stiffness | float | ||
tearSensitivity | float | ||
totalPointsToApproximateCollisionsWith | int |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
approximateCollisionsWithPoints ( int collidesWithLayers ) : void | ||
handleCollisions ( int collidesWithLayers ) : void | ||
preparePolygonForCollisionChecks ( Vector2 &midPoint ) : void |
public DistanceConstraint ( |
||
first | ||
second | ||
stiffness | float | |
distance | float | |
리턴 | System |
public static create ( |
||
a | The alpha component. | |
center | Center. | |
c | C. | |
stiffness | float | Stiffness. |
angleInDegrees | float | Angle in degrees. |
리턴 |
public setCollidesWithColliders ( bool collidesWithColliders ) : |
||
collidesWithColliders | bool | If set to |
리턴 |
public setShouldApproximateCollisionsWithPoints ( bool shouldApproximateCollisionsWithPoints ) : |
||
shouldApproximateCollisionsWithPoints | bool | If set to |
리턴 |
public setTearSensitivity ( float tearSensitivity ) : |
||
tearSensitivity | float | Tear sensitivity. |
리턴 |
public bool shouldApproximateCollisionsWithPoints | ||
리턴 | bool |