Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary pitch/yaw control for bow firing on robots #952

Closed
pingbird opened this issue Mar 5, 2015 · 10 comments
Closed

Arbitrary pitch/yaw control for bow firing on robots #952

pingbird opened this issue Mar 5, 2015 · 10 comments

Comments

@pingbird
Copy link
Contributor

pingbird commented Mar 5, 2015

would allow us to make automated sentries

@pingbird
Copy link
Contributor Author

pingbird commented Mar 7, 2015

if you are wondering how the math for making a sentry would be done:

subtract the targets position from the robot's position
rotate the xz plane so that x+ is forward and z+ is right
then rotate math.atan2(x,z) by the robot's yaw, this is your firing yaw
and math.atan2(y,x) is your firing pitch

@sirdabalot
Copy link

How're you planning to get the targets position?

@vifino
Copy link
Contributor

vifino commented Mar 18, 2015

Lasers, obviously.

@Vexatos
Copy link
Contributor

Vexatos commented Mar 18, 2015

Computronics Radar Upgrade?
Just an idea 😉

@MyNameIsKodos
Copy link
Contributor

Can't vanilla OC radar do this as well?

@Vexatos
Copy link
Contributor

Vexatos commented Mar 18, 2015

OC doesn't have a radar. It's got a Motion Sensor, though.

@MyNameIsKodos
Copy link
Contributor

I think that would be a neat balance for PvP. If you stood absolutely still, a robot sentry couldn't find you. The second you move though, thunk boot arrow to the head.

@pingbird
Copy link
Contributor Author

the algorithm i showed calculates a straight line towards the target position, i need to find the trajectory algorithm of a arrow in order to make it work from a long distance and account for the target's velocity

Sorry, something went wrong.

@CoolCat467
Copy link

More control over projectiles for the robots is what they want I think

Sorry, something went wrong.

@payonel
Copy link
Member

payonel commented May 10, 2021

open for adaption expired :)

Sorry, something went wrong.

@payonel payonel closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants