Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

WeldJoint

The WeldJoint glues two bodies together keeping a constant relative angle. More...

Import Statement: import Felgo 4.0
Inherits:

Joint

Properties

Detailed Description

The WeldJoint glues two bodies together keeping a referenceAngle. You need to specify local anchor points where the bodies are attached and the relative body angle (referenceAngle property). The position of the anchor points is important for computing the reaction torque.

For a comprehensive documentation of all joints see the Box2D documentation at http://www.box2d.org/manual.html#_Toc258082974.

Property Documentation

dampingRatio : real

The damping ratio. 0 = no damping, 1 = critical damping. The default value is 0.


frequencyHz : real

The mass-spring-damper frequency in Hertz. The default value is 0.

Typically the frequency should be less than a half the frequency of the PhysicsWorld::timeStep. So if you are using a 60Hz time step, the frequency of the distance joint should be less than 30Hz. The reason is related to the Nyquist frequency.


localAnchorA : point

The local anchor point relative to the Joint::bodyA center in pixels.

The default is (0, 0), which means the center of Joint::bodyA.


localAnchorB : point

The local anchor point relative to the Joint::bodyB center in pixels.

The default is (0, 0), which means the center of Joint::bodyB.


referenceAngle : real

The bodyB angle minus bodyA angle in the reference state in degrees. The default is 0.

Note: Changing the referenceAngle at runtime has no effect. It is only read at initialization time and cannot be changed later.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded