Static
addCreates a single Joint to attach a RigidBody to a fixed point on the singleton Scrim, at the current world position of the attachment point. See Scrim.getScrim.
the ContactSim to which the Joint is added
the RigidBody to add joints to
the point to place the Joint in body coordinates
whether the normal should be in body or world coords
the normal Vector that determines the direction of the Joint
the Joint that is created
Static
addCreates a single Joint to attach two RigidBodys. The second body is moved to align with the first body, see Joint.align.
the ContactSim to which the Joint is added
the first RigidBody
the attachment point on body1
, in body coordinates
the second RigidBody
the attachment point on body2 in body coordinates
whether the normal is in body or world coords
the normal Vector that determines the direction of the Joint
the Joint that is created
Static
attachCreates two Joints with perpendicular normals to attach a RigidBody to a fixed point on the singleton Scrim, at the current world position of the attachment point. See Scrim.getScrim.
the ContactSim to which the Joint is added
the RigidBody to add joints to
the point on the RigidBody to place the joints, in body coordinates
whether the normal should be in body or world coords
Static
attachCreates two Joints with perpendicular normals to attach two RigidBodys. The second
body is moved to align with the first body, see
Joint.align. The normal vectors are (0, 1)
and (1, 0)
,
in either body coordinates or world coordinates as specified by the CoordType.
the ContactSim to which the Joint is added
the first RigidBody
the attachment point on body1
, in body coordinates
the second RigidBody
the attachment point on body2
, in body coordinates
whether the normal should be in body or world coords
Generated using TypeDoc
Utility functions for creating Joints.