lua.wetgenes.chipmunk.constraint
constraint=chipmunk.constraint(abody,bbody,form,...)
Create a constraint between two bodies.
You will need to add the constraint to a space before it has any effect so it is normally preferable to use the space:constraint function which will call this function and then automatically add the constraint into the space.
constraint=chipmunk.constraint(abody,bbody,"pin_join",ax,ay,bx,by)
form of "pin_joint" ...
constraint=chipmunk.constraint(abody,bbody,"slide_joint",ax,ay,bx,by,fl,fh)
form of "slide_joint" ...
constraint=chipmunk.constraint(abody,bbody,"pivot_joint",x,y)
constraint=chipmunk.constraint(abody,bbody,"pivot_joint",ax,ay,bx,by)
form of "pivot_joint" ...
constraint=chipmunk.constraint(abody,bbody,"groove_joint",ax,ay,bx,by,cx,cy)
form of "groove_joint" ...
constraint=chipmunk.constraint(abody,bbody,"damped_spring",ax,ay,bx,by,fl,fs,fd)
form of "damped_spring" ...
constraint=chipmunk.constraint(abody,bbody,"damped_rotary_spring",fa,fs,fd)
form or "damped_rotary_spring" ...
constraint=chipmunk.constraint(abody,bbody,"rotary_limit_joint",fl,fh)
form of "rotary_limit_joint" ...
constraint=chipmunk.constraint(abody,bbody,"ratchet_joint",fp,fr)
form of "ratchet_joint" ...
constraint=chipmunk.constraint(abody,bbody,"gear_joint",fp,fr)
form of "gear_joint" ...
constraint=chipmunk.constraint(abody,bbody,"simple_motor",fr)
form of "simple_motor" ...
lua.wetgenes.chipmunk.constraint.collide_bodies
v=constraint:collide_bodies()
v=constraint:collide_bodies(v)
Get and/or Set the max collide bodies flag for this constraint.
lua.wetgenes.chipmunk.constraint.error_bias
v=constraint:error_bias()
v=constraint:error_bias(v)
Get and/or Set the error bias for this constraint.
lua.wetgenes.chipmunk.constraint.impulse
v=constraint:impulse()
Get the last impulse for this constraint.
lua.wetgenes.chipmunk.constraint.max_bias
v=constraint:max_bias()
v=constraint:max_bias(v)
Get and/or Set the max bias for this constraint.
lua.wetgenes.chipmunk.constraint.max_force
v=constraint:max_force()
v=constraint:max_force(v)
Get and/or Set the max force for this constraint.