Hopefully I am not misunderstanding your question. In lite, lookAt's upAxis property can be used to control "local z axis" (roll) rotations. You can either:
1. change the upAxis vector itself to create "local z rotations", or 2. make a parent of the model and put the lookAt on the parent. Set the lookAt's upAxis vector to something like (1,0,0), Then the Z rotation of the child (the model) should be pure. Best, Shawn On May 18, 3:28 pm, Reinorvak <[email protected]> wrote: > I know this is me probably just shooting at nothing when I probably > already know the answer. But is there any way when using the lookAt > function, to not loose the rotations you had previously? > > Currently, I've got a model placed on a wall, it can only rotate > around its forward axis, aka the Z vector. This vector always points > to the center of the room and I use the lookAt function to keep it > pointing at the center. However, every time I lookAt the center again, > I loose the previous Z rotation I had and get a 0, 180, 0 rotation or > something of that nature. > > Just kinda curious since this would save me about a few hours of work. > > Thanks in advance, > Rein
