Jump to content

Setting position of object


Recommended Posts

Your guess is correct, move the difference. If you haven't already written one, here's a short procedure I've used before for Set3DCntr.

HTH,

Raymond

Procedure Set3DCntr(H :Handle; x, y, z :Real);

{ Set the 3D center point of the object referenced by handle "H",

to the coordinates specified by "x", "y" & "z" }

Var

u, v, w :Real;

Begin

Get3DCntr(H, u, v, w);

Move3DObj(H, x-u, y-v, z-w);

End;

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...