Coding a Video Game - Dynamic Enemy AI arm

Trigonometric ratios and functions, the unit circle, inverse trig functions, identities, trig graphs, etc.
eteeski
Posts: 1
Joined: Wed May 30, 2012 4:55 am
Contact:

Coding a Video Game - Dynamic Enemy AI arm

Postby eteeski » Wed May 30, 2012 6:08 am

I'm making a first person shooter and I'm trying to use trigonometry to create arms for the enemy to be able to hold a gun. Here's an images to help show what I'm trying to do.
Image
I guess another way i could explain this is that I have an acute triangle (I think that's what it's called. In other words, a triangle that has three sides of different length) and I know that length of all three sides. How to I find the angles of that triangle?

anonmeans
Posts: 64
Joined: Sat Jan 24, 2009 7:18 pm
Contact:

Re: Coding a Video Game - Dynamic Enemy AI arm

Postby anonmeans » Fri Jun 01, 2012 12:14 am

You know all 3 sides so its a SSS triangle. Use the law of cosines to start.


Return to “Trigonometry”