|
@@ -1152,12 +1152,12 @@ export class AmmoJSPlugin implements IPhysicsEnginePlugin {
|
|
|
|
|
|
/**
|
|
|
* Append an anchor to a soft object
|
|
|
- * @param impostor, soft impostor to add anchor to
|
|
|
- * @param otherImpostor, rigid impostor as the anchor
|
|
|
- * @param width, ratio across width from 0 to 1
|
|
|
- * @param height, ratio up height from 0 to 1
|
|
|
- * @param influence, the elasticity between soft impostor and anchor from 0, very stretchy to 1, no strech
|
|
|
- * @param noCollisionBetweenLinkedBodies, when true collisions between soft impostor and anchor are ignored; default false
|
|
|
+ * @param impostor soft impostor to add anchor to
|
|
|
+ * @param otherImpostor rigid impostor as the anchor
|
|
|
+ * @param width ratio across width from 0 to 1
|
|
|
+ * @param height ratio up height from 0 to 1
|
|
|
+ * @param influence the elasticity between soft impostor and anchor from 0, very stretchy to 1, no strech
|
|
|
+ * @param noCollisionBetweenLinkedBodies when true collisions between soft impostor and anchor are ignored; default false
|
|
|
*/
|
|
|
public appendAnchor(impostor: PhysicsImpostor, otherImpostor: PhysicsImpostor, width: number, height: number, influence: number = 1, noCollisionBetweenLinkedBodies: boolean = false) {
|
|
|
var segs = impostor.segments;
|