Box2D. Box2dPinJoint

Box2D Pin Joint

  • Pins two objects together at a point, where they still turn freely, like a nail through two boards
  • A revolute joint at that point, so it holds exactly and its limits and motor work too

Constructor

new Box2dPinJoint(objectA, objectB, posopt, collideopt)

Create a pin joint

Parameters:
NameTypeAttributesDefaultDescription
objectABox2dObject
objectBBox2dObject
posVector2<optional>

World position, objectA's position if not given

collideboolean<optional>
false

Extends

  • Box2dRevoluteJoint