Constant angular velocity with linejoint

Hello,

i have wheel connected with linejoint to the body of motorbike. I would like to have the wheel to rotate at certain constant (!) angular velocity. My problem is that linejoint doesnt support something like revolute joint does - the motor speed. (if i understand i right ) By setting motor speed with linejoint it seems it only affects the spring part of the joint. However i need some kind of motor that affects rotation of the wheel as well.
By setting angular velocity of the wheel itself i manage to change its velocity but its not constant and is affected by enviroment.

Any ideas? Thx
b2WheelJoint in SVN will do what you want.
Thank you for your answer. It seem that WheelJoint is not yet ported to java, that im using. Is there any way of using extra revolute join not connected to anything for just the motor part?
pls correct me if im wrong. is it possible to make structure like this to simulate wheeljoint? :
motorcyclebody - prismatic joint - some_invisible_part - revolute joint - wheel

with center of some_invisible_part == center of wheel and with motor on invisible part?
I cant check it now because im not on my PC.

Original thread: https://box2d.org/forum/viewtopic.php?t=7190