switching pivots?
Blitz3D Forums/Blitz3D Programming/switching pivots?
| ||
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? |
| ||
EntityParent entity,otherpivot |
| ||
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. :) |
| ||
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" ;) |
| ||
[edit: What he said ^^ ] |
| ||
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 ) |