I am hoping for some clarification regarding rotating the statue in the game.
In this lecture, Sam originally sets the grab rotation based on HitResult.GetComponent()->GetComponentRotation()
but later changes it to simply GetComponentRotation()
.
Can you clarify why he made this change? It seems confusing to me because I would think that getting the gargoyle’s current transform should keep the gargoyle’s rotation as-is. Instead, the first code sample seems to point the gargoyle in the direction of the world x-axis, whereas as shown in the second code sample, getting the rotation of the grabber causes the rotation of the gargoyle to stay the same.