Does CopyEntity create additional geometry?

Blitz3D Forums/Blitz3D Beginners Area/Does CopyEntity create additional geometry?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

When you create or load new meshes, you get something like this.
mesh         entity
pawn.b3d  <--blackpawn1
pawn.b3d  <--blackpawn2
pawn.b3d  <--blackpawn3
...
pawn.b3d  <--whitepawn7
pawn.b3d  <--whitepawn8

As you can see, the mesh "Pawn.b3d" is stored in memory several times with each entity pointing to a seperate one. This takes up extra memory as well as slow things down. Using CopyEntity, you get this
mesh        entity
pawn.b3d <--blackpawn1
    ^
    |-------blackpawn2
    |-------blackpawn3
    |-------blackpawn4
...

All entities point to the same mesh. You can call Entity commands on each entity just like before, ScaleEntity, RotateEntity, EntityColor, etc... However, anything that happens to the mesh itself occurs to all the entities pointing to it, ScaleMesh, RotateMesh, VetexColor, etc...