wheelJointWith

inline fun Body.wheelJointWith(body: Body, init: WheelJointDef.() -> Unit = {}): WheelJoint

Allows to create a WheelJoint. this Body will be set as the JointDef.bodyA and will be available through Joint.getBodyA.

Return

a new instance of WheelJoint created with the customized WheelJointDef.

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

WheelJointDef
WheelJoint