hi all!
I have this issue:
in the previous frame I’ve got a gameobject (with 2 points insid of it) that have p0World and p1World (both in world position.
after a particular movement, in the next frame I know the new p0World and p1World…
I need to move and rotate the game object to have the 2 points in the new position…
I don’t even know what this means. You mean sub-GameObjects? You mean Vector3 fields inside a MonoBehavior script? GameObjects can’t have “points inside of it”.
Can you just make 2 empty GameObjects as children of that GameObject, then store the positions in their transform.position? That way when you move or rotate the parent GameObject, the other two will automatically be correct all the time, in real time.