scs.s...@gmail.com
unread,Jan 20, 2019, 10:30:03 PM1/20/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GAMA
Hi all,
I'd have a new question to ask: for my boats (still the boats, yes :) ) I would like to implement wind/wave directions and speed now and they should influence the boats direction/speed.
For that I would like to use resultant force (sin/cos) functions, but I would need the current angle/amplitude/heading (?), the boat is moving at, when moving towards a target (go_to).
Mathematically, in my formula this would be the alpha angle:
These are the basic formulas I would like to use, in order to splitt the resultant speed into the x and y speed:
F(x) = v*sin(alpha)
F(y) = v*cos(alpha)
Is there a way to find out, what the current angle of movement of an agent is?
Thanks a lot!
Sheba