#Get world position of object as a child
1 messages · Page 1 of 1 (latest)
I'm not sure I understand the problem
do you want the gravity vector's magnitude (length) to be different depending on the distance, or something?
dont understand + 1, gravity is not vector indeed and you probably cant have "gravity vector" (but the force due to gravity is vector)
just think of it as a position, forget the gravity part. the thing is that it's not being positioned in the right place
ah
you set the position to the gravityVector, right?
someVector.normalized means that you take a vector that points in the same direction, but the vector is normalized so that its magnitude (length) is exactly 1.0
the center of the object is in the right direction, but 1 meter from the center of the scene
have you tried using newGravityVector instead of newGravityVector.normalized?