prismaticJointWith
inline fun Body.prismaticJointWith(body: Body, init: PrismaticJointDef.() -> Unit = {}): PrismaticJoint
Allows to create a PrismaticJoint. this
Body will be set as the JointDef.bodyA and will be available through Joint.getBodyA.
Return
a new instance of PrismaticJoint created with the customized PrismaticJointDef.
Parameters
body
will be set as JointDef.bodyB and available through Joint.getBodyB.
init
inlined. JointDef.bodyA, JointDef.bodyB and JointDef.type must not be changed. Invoked after joint definition default values are preset.
See also
PrismaticJointDef
PrismaticJoint