I have door in my arena, the arena is doors parent object. I want to use HprInterval/hprInterval to open&close the door, but the door doesnt rotate around its origin but around arenas origin(I think). Is there a way to fix it or do I have to clear door from parent object?
edit: btw: What other ways can be used to open/close door? Maybe I can use bone but the interval thing seems like the best solution.
Hmm. I think that I know why you get this result - try to see to your door hierarhy (door.ls()) - I think, that indeed door geom is parented to something like PandaNode, not directly to your scene
but your example uses 2 eggs, I have doors and arena in 1 egg
edit:
doors are doing the same thing as s2.smiley
edit2:
but s2.smiley orbits bc s1.smiley spins and not bc it has messed up origin, so it is a different thing…
one important thing I forget to mention: arena is parent object and doors child in blender, with unparented objects in blender it works
I managed to reproduce the effect. If in blender the origin of parent object is moved to other position than 0,0,0(and scaling of parent object is influencing it too), it will mess up.
are you sure the origin(pivot axis) of the door model is at the pivot of the door?
for example, a vertex on the door has pos of (2,0,0) in a scene, it can be made of
pivot(0,0,0)+ offset(2,0,0)
or pivot (1,0,0) + offset(1,0,0)
or pivot (2,0,0) + offset(0,0,0)
when you move the door in a modeler, did you move the pivot with the door polygons?