I want to control the speed of a D6 joint along the x axis while at the same time allowing for free rotation around the y axis. This is to mock the dynamics of omni-directional wheels. I have locked the three linear motions and the rotation around the z-axis. I can’t seem to find any examples of this.
Hi,
there is a physics demo for D6 joint (Window->simulation->physics->demos), where you can lock/enable selected axis.
So what you need to do is to create the generic PhysicsJoint and add limits per axis, where the rules are:
a) Limit min < max - movement restricted between min and max
b) Limit max < min - movement locked
c) Limit not applied no API added - movement free