Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by Spirit-X

I have a turret (with a laser scope for hit detection) on a moving vehicle. Turret has a gimbal (ball joint) with 60 degrees of motion.

I want the gun to start searching for targets on it's own, scanning left and right and up and down. The ball joint tells me when it's hit a limit but I can't work out how to calculate WHICH limit, i.e top, bottom, left or right.

Been playing with angle sensors thinking I could use the orientation outputs but doesn't seem to make any sense and I can't make head or tail of it. The orientation doesn't seem to be measured in degrees and although you can tell the angle sensor to be 'relative' to another object, that has no effect on the values being output. Doesn't make the orientation figures relative to the thing you've selected. So I'm not even sure what the point of that function is, it doesn't do anything.

Anyway, just hoping someone might be able to point me in the right direction with this as I'm running out of ideas.

Oh dear! Your browser is either unsupported or there has been a problem loading the page.