Question by
douglasETasdasd · Jul 26, 2016 at 08:07 PM ·
movementraycastingparentpushrelative position
Problem making object keep on RaycastHit point relative to another object
I'm making a push system - the third person characters push some object for puzzle -, but there's a dump problem that i did not find a solution yet. I'm using a raycast at start to know that the object is in front of the player, but this RaycastHit is saved on a variable and do not happen again, then the characters needs to be on that RaycastHit point, but this position must be relative to the object, because this one moves, so the character needs to move too. I've tried the object position - point, object forward -/+ point, event TransformPoint, but nothing work fine :/ Probably is something realy easy, but well, here i am :D! alt text
unityhelp.png
(47.2 kB)
Comment