Rigid body turning with mouse

Hi,

I i’m trying to find a way to have a rigid body object, like a sphere, to be able to be turned by the mouse. It’s be basically a third-person view, but the object would be rigid body. Since i have to use non-linear forces for a rigid body ojbect (otherwise the axis would be moving and i’d be putting forces in all kinds of different dirrections) i can’t just turn it normally. How could i have my object go in the direction my camera is pointing?

Unless there’s a really clever way to do this with logicbricks it’s probably goign to use some sort of python script.

Thanks

Pooba

why can’t you use forces on the global axis?

(and python if you want to act as if the global axis can turn… simple rotation on a plane, if you haven’t taken trig you may not know it yet)

didn’t roller (was that you?) do this?

Yeah, you’re at the right address. I made some weeks ago a sphere which turns on mous movement to the right and left, I used it for a jetpack sphere looking character. I can post it, but I have a problem, I’m on school so I can’t reach my blender files, but keep visiting this topic. I upload the file tomorrow or today at 11pm/12pm Europese time. 8)

You can do force on global axis. In the motion actuator, make sure to unckedk the “L” value. From python, use setForce() with a zero in the fourth column rather than a one.

That value determines whether force is local or not.

Ok, here is the file I promesed to upload, the character which rotates on mouse movement. http://home.hetnet.nl/~jdvhulst/elysiun/character_rotate_mouse.zip it’s a blend file, your free to use it. :wink:

No, I already got it. The reason i couldn’t just use global forces is because i wanted to rotate the camera with the mouse and then still have camera-relative movement. Lizard made me a script when i had accidently posted it on the Big World thread.

Pooba