Does it matter what object's transform the TransformPoint() method is attached to?
Does it matter what object's transform the TransformPoint() method is attached to, since it's supposed to return a world space position? For example given the following structure:
- Obj1
ChildObj1
Obj2
Doing Obj1.transform.TransformPoint(Obj2.transform.position)
should return the same thing as ChildObj1.transform.TransformPoint(Obj2.transform.position)
regardless of Obj1 and ChildObj1's positions.
Is this correct? If so, what am I missing? Why does the TransformPoint have to be attached to an object's transform?
Your answer
Follow this Question
Related Questions
how do I rotate an object without affecting later rotation? 0 Answers
Obtain a Transform using RayCastAll without a Collision (ie a point in space) 2 Answers
Have Raycast rotate on local position with fixed direction 0 Answers
Don't understand parent vs child transform in world and localspace 1 Answer
Add force forward to a ball using local coordinates doesn't work as I wanted 0 Answers