touch joint with specifiable strength and behavior

Hi guys, is there a way to control the strength and behavior of a touch joint?

The documentation just says this:
“A touch joint (based on the Box2D “mouse joint”) connects a single object to the current position of an onscreen touch. This connection is an elastic joint with specifiable strength and behavior”

but I was wondering which is the way to specify this attributes…

thanks [import]uid: 74667 topic_id: 30859 reply_id: 330859[/import]

Greetings,
These attributes apply to touch joints…

Maximum force: The overall speed or “lag” of the joint depends on the force exerted:

myJoint.maxForce = 10000

Frequency: The mass-spring damping frequency of the elastic joint (in Hz):

myJoint.frequency = 50

Damping ratio: The damping ratio of the elastic joint, ranging from 0, for no damping, to 1, for critical damping:

myJoint.dampingRatio = 0.2

Reference to all of the joint principles can also be studied here:
http://developer.coronalabs.com/content/game-edition-physics-joints

Hope this helps!
Brent
[import]uid: 9747 topic_id: 30859 reply_id: 123473[/import]

thanks Brent!! this is what I was looking for :slight_smile:

cheers! [import]uid: 74667 topic_id: 30859 reply_id: 123556[/import]

Greetings,
These attributes apply to touch joints…

Maximum force: The overall speed or “lag” of the joint depends on the force exerted:

myJoint.maxForce = 10000

Frequency: The mass-spring damping frequency of the elastic joint (in Hz):

myJoint.frequency = 50

Damping ratio: The damping ratio of the elastic joint, ranging from 0, for no damping, to 1, for critical damping:

myJoint.dampingRatio = 0.2

Reference to all of the joint principles can also be studied here:
http://developer.coronalabs.com/content/game-edition-physics-joints

Hope this helps!
Brent
[import]uid: 9747 topic_id: 30859 reply_id: 123473[/import]

thanks Brent!! this is what I was looking for :slight_smile:

cheers! [import]uid: 74667 topic_id: 30859 reply_id: 123556[/import]