Jump to content

Could someone please explain parent space & matrix?


bansama
 Share

Recommended Posts

I'm looking at the Entity::SetPosition documentation and it mentions the following: "Local coordinates are relative to the entity parent's space". But it doesn't mention how you define this. Is this defined with SetParent? I realise this is probably stupidly obvious, but the clarification would be appreciated!

 

What I am hoping to do is get an entity's local position relative to the object it is colliding with.

 

Could someone also explain matrix in the context of GetMatrix/SetMatrix? What would it be used for? Does it significantly differ to position and rotation or does it contain the same type of information?

 

Thanks!

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...