Not a bump for this thread, but rather a request:
I'm wanting to know what math is required for me to have the life rafts be dumped overboard. one gets put overboard on the port side, the other on the starboard. Setpos doesn't work satisfactory as depending upon the direction of the police launch the raft sometimes gets deposited unter the launch itself. I presume it is a cos and sin function that does this, but my old brain aint what it used to be.
Thanks
I'd like to stay away from trigonometry, so I'll tell you what I would
do if I were in your feet. I would try with a setvelocity command, with
very low components, with the z one slightly (0,2 or so) positive.
Then, since I believe your rafts weight something, the engine of
OFP would do the rest. Still, I haven't try this, so I can't assure
it'll work. Basically to set the others two components of the velocity
vector you take the main boat direction and then (this time trigonometry
is indispensable) you can use as x component the sine of the
direction+90 multiplied by a little factor, and the cosine of the direction
+90 for the y component multiplied for the same factor to dump the
raft at starboard, sine of direction-90 and cosine of direction-90
to dump the raft at portside.
I'm assuming that you are deleting the proxies on the main
boat and simulating a dump of the raft, not positioning the
raft directly in the water. If you can simulate the dump I
think it will look a lot better than simply put the raft in the
water.
I hope this works.