- Home /
Add posititons relative to transform
i'm trying to add a vector3 to the transform.position but the new position doesnt rotate with it...
i dont exactly know how to explain my problem but i hope the pictures help
ins$$anonymous$$d of using empty object you can use Transform.RotateAround
Answer by LucaTehDev · Jan 17, 2018 at 04:30 PM
ok i found a solution i just added empty game objects to my object and take their position in the script..... it was too simple for me to do this at the first time...
Answer by dev-waqas · Jan 16, 2018 at 05:50 PM
Looks like instead of using transform.position
you need to use transform.localPosition
.
no, my problem is that if the object rotates that the point i want to add a force isnt at the corner of the object because the vector3 i add to my position is added in global axis and not in lokal..