I have set up a dependent joint using the gui and everything behaves as expected.
I am generating robots programattically using the lua api and so far I have not been able to create a dependent joint from lua code.
I can use:
Code: Select all
sim.setJointMode(sim.jointmode_dependent)
These are the closest functions to what I want to do, but I am not using the vortex or newton engine so they don't have the desired effect.
Code: Select all
sim.vortex_joint_dependencyfactor (float parameter)
sim.vortex_joint_dependencyoffset (float parameter)
sim.vortex_joint_dependentobjectid (int parameter)
sim.newton_joint_dependencyfactor (float parameter)
sim.newton_joint_dependencyoffset (float parameter)
sim.newton_joint_dependentobjectid (int parameter)
Thanks