I have a parent game object A, who has a child B, currently the use of B is just to get its world up axis (child.up
) and world position (child.position
) at runtime, apart from this they are of no use, so I decided to eliminate them by storing their local position and local rotation, at runtime I am parsing its local position to world like parent.TransformPoint(childLocalPos)
but I am unable to find how to convert its local rotation to world axis, besides may be I am wrong that's not possible, please correct me.
Asked
Active
Viewed 35 times
0

Ashok Damani
- 3,896
- 4
- 30
- 48
-
1Did you try `transform.TransformVector(childLocal.up)`? – Heejae Kim Feb 24 '19 at 00:18
-
lemme try........... – Ashok Damani Feb 24 '19 at 09:22
-
it works like charm !!! thanks @heejae – Ashok Damani Feb 24 '19 at 14:46