I’m working in dynamic houses that creates the interior (furniture, doors, etc) when the player is near. Each item has a position vector relative to the house location, and a relative rotator.
If the house is not rotated, the item.location = house.location + item.relativelocation. For the rotator the same, no problem.
What I’m triying is to get the item location when the house is rotated in any angle. So I have house.location, house.rotation and item.relativelocation. How calculate the new item.location depending of the house location and rotation?