change parent

Blitz3D Forums/Blitz3D Programming/change parent

Is it possible to change an entity's parent or assign one, AFTER its been created?
I need to assign a pivot parent to a load of other entities after they'v been created so I can rotate them around the pivot, or is there a better way of doing this in Blitz3D.

I can't do it on creation of the entities for game reasons.


ZT

Yes, with the EntityParent command.

EntityParent entity,parent makes the parent association.
EntityParent entity,0: removes the parent association.

http://www.blitzbasic.com/b3ddocs/command.php?name=EntityParent&ref=goto

Sergio.

thanks ;-)