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?

  • 1
    $\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, 2017 at 18:00

1 Answer 1

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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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