Jump to content
Sign in to follow this  
fawlty

Attaching objects

Recommended Posts

In the editor, is there a way of getting location coordinates for attaching  objects other than trial and error.

I'm trying to attach a gunner to a commercial frigate. 

Share this post


Link to post
Share on other sites

You can put down the frigate (f) and the gunner (g) in the editor exactly where you need them, disable simulation (in attributes) and then run this in debug console:

 copyToClipboard str (f worldToModel getPos g);

This will copy to clipboard the relative position that you can later use in attachTo.

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks to you both for the info.

I found "attachToRelative" to be the easiest method for my needs, it'll save me lots of time in the future. 

Only wish I had of asked earlier.

 

Cheers

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×