switching pivots?

Blitz3D Forums/Blitz3D Programming/switching pivots?

danjo(Posted 2004) [#1]
i have a 2 questions: can you switch entities that are assigned to a pivot to another pivot? - and if so, how is this done?

ie:
mainpivot = createpivot()
otherpivot = createpivot()
entity = loadmesh("mymodel.b3d",mainpivot)

the entity model this assigned to the mainpivot.
if i chose to reassign is to the otherpivot, is that possible - and how?


Mo(Posted 2004) [#2]
EntityParent entity,otherpivot


BlackD(Posted 2004) [#3]
and also make sure to reposition the child (entity) to the location of the new pivot if you're wanting to move it at the new location. Otherwise it'll stay where it was and rotate (or whatever) in huge circles around the new pivot instead of spinning on the spot. :)


Mo(Posted 2004) [#4]
and also make sure to reposition the child (entity) to the location of the new pivot if you're wanting to move it at the new location.

Which is also possible to do automatic with "EntityParent,entity,parent,0" ;)


BlackD(Posted 2004) [#5]
[edit: What he said ^^ ]


danjo(Posted 2004) [#6]
the entity wasnt going to be re-positioned. i was wanting a group of entities to be able to be spun on 2 or 3 different axis ( ie rubiks cube blocks )