I am trying to allow the player to buy a weapon from the wall inside a moving helicopter.
My solution is to create a dynamic sphere for each weapon. I then cast a ray and see if there's a collision. I use entitymover to keep the sphere relative to the helicopter body. I use a matrix.createtranslation for the sphere offset which I multiply by the helicopter's worldtransform. This is almost working

I have a small video here where you can see it in action. You'll notice that when the player points at a sphere a message is displayed "Press and hold A for weapon". You'll notice it's displayed when not pointing directly at the sphere, I presume this is where the sphere was at the time of the raycast, and the modeldrawer is lagging behind. You'll also notice as the helicopter slows down to allow the player to disembark, the accuracy improves.
As always any help or suggestions would be greatly appreciated.
http://www.youtube.com/watch?v=EkFA7dzM ... e=youtu.be