Jump to content

Dinox Whitfield

  • Posts

  • Joined

  • Last visited

Everything posted by Dinox Whitfield

  1. I managed to solve it. The problem was in how llSetPos() interpreted the coordinates. They were region-relative whereas the function expected them root-relative. I simply transformed the coordinates to the root basis. Btw, the "erroneous" region coordinates' X, Y, Z values exceeded the 55m limit so that too prevented the script from working as expected.
  2. I have 3 objects linked together: root, child1, child2. The default behavior of rotation functions and functions returning position and orientation info is to return those in either World (region-relative) coordinates or Local (root-relative) coordinates. This is useful for rotation about the region's origin or the root. What I want to achieve instead is to rotate child2 around child1. Unfortunately when I do the necessary calculations (transform child2's position to child1's basis, rotate child2, transform hild2's position back to region coords) and invoke llSetPos() in the child2's script, it doesn't change it's position. Calculations are correct cause I checked the outputs and the pre-transform and post-transform values are different so even if there was a mistake, llSetPos() should've at least move the object somewhere. But nothing happens. Child2 stays where it is.
  • Create New...