Jump to content

Recommended Posts

Posted

I apologize for the naive questions, I understand that there is a wiki, but to me there is not all clear. If a man has the desire and time, please reply to some after them.

 

How can I get information about the coordinates (position, rotation, scale) of the object in the scene? How they can be divided into three coordinate axes X, Y and Z.?

characters artist

animator

environment artist

vehicles artist

vehicles script writer

 

Participated in ready game projects:

Russian http://4x4game.ru/

English http://www.1cpublishing.eu/game/4x4-hummer/overview

Posted

I apologize for the naive questions, I understand that there is a wiki, but to me there is not all clear. If a man has the desire and time, please reply to some after them.

 

How can I get information about the coordinates (position, rotation, scale) of the object in the scene? How they can be divided into three coordinate axes X, Y and Z.?

 

local coords = model:GetPosition()

coords.x

coords.y

coords.z

Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX

ZBrush - Blender

Posted

Just curious:

Local position is global position if it has no parent?

Else local position is relative parent?

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

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.   Paste as plain text instead

  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...