Dark Dreams of Furiae - a new module for NWN:EE! Buy now
My math skills are weaksauce
Now that I'm finally getting the hang of using the new ObjectVisualTransform functions I've run into another problem. I would like to make a wall object (torch, painting, shield, sword, etc) rotate a certain number of degrees to use as as a switch for a secret/trapdoor or what not. The problem is that OBJECT_VISUAL_TRANSFORM_ROTATE_
rotates at the base of the object and not at its center point. In addition to rotating you also need to translate up or down and to either side based on which way you are rotating. So I was wondering if anyone with some math skill might have made a home brew function using the new Transform function to rotate the object at it's center.