The WeldJoint glues two bodies together keeping a constant relative angle. More...
Import Statement: | import Felgo 4.0 |
Inherits: |
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.
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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: