0
$\begingroup$

I'm trying to label the thrusters on my spaceship using arrows. The arrows appear and so does the text, but I'd like to put the text at the end of the arrows instead of in the middle of the ship. Ship with arrows

You can see what I mean here. My code is this: Code

How do I go about this?

$\endgroup$
  • $\begingroup$ Post actual code in code blocks that can be copied and pasted into a Mma notebook rather than images of a notebook. $\endgroup$ – Bob Hanlon May 5 '17 at 18:00
2
$\begingroup$
myarrow[begin_List, end_List, mytext_String] := Graphics3D[
  {Arrow[{begin, end}], 
   Text[Style[mytext, 14], end]}]

You can fine tune this (size, placement, etc.) to fit your needs.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.