- Home /
Question by
samooniyakk · Aug 05, 2018 at 05:33 AM ·
c#rotationraycast
getting center of rotated object
Hi guys i have a question.that i tryed so much but i can't do that.
There is a [white box] that casting raycast from the bottom of [white box].(the picture number 1)
Then i have a [blue box] that got rotation on it.
Picture Number 1: Https://imgur.com/Fucu8I7
Now question is: How can i say ,if raycast hit [blue box], Then take the [white box] to the center of [blue box] (just like the picture number 2)
Picture Number 2: Https://imgur.com/UUoV2wc
This is all i looking for: Https://imgur.com/iwCI0jo
Comment