Forums > Jitter

automatic auto_rotate

Nov 21 2012 | 10:48 pm

Hi there,

I’m getting back into GL-jitterland, and am wondering if there’s a way to do a sort of ‘automatic’ auto_rotate with (or if there is a better way to do this in general). Basically, I want something to rotate about the vertical axis (Yaw), but without a click-drag.

A follow-up question would be whether or not there is a way to emulate the click-drag of the mouse with the new jitter physics objects.

Much thank yous!!!

Nov 22 2012 | 12:45 am

for your first question, check out
for you second, i’m not entirely sure what you mean, but check out jit.phys.picker.

Nov 22 2012 | 2:26 am

hi robert-
thanks for the suggestions.

1. yes, works a treat. wonderful!
2. when i click-drag on a jit.phys.body object in the jit.phys.picker help file, the object gets flung around in space. is there any way for me to create the same type of constraint of intersection on bodies without using the mouse?


Nov 23 2012 | 6:55 pm

check out the touch message to the phys.picker object, if you want to use screen-coords.
otherwise, you can use a jit.phys.point2point constraint, attach it to whatever body you want to affect, and drag the body with the phys.point2point’s position2 attribute.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter