Page 1 of 1

Transform

Posted: Sat Feb 09, 2013 3:43 am
by IdeasVacuum
From the Mesh Help (PB5):
A mesh may not be moved or displayed directly, but requires to be manipulated through an entity.
However, there is a Mesh Move function: TransformMesh(). Shouldn't there be a TransformEntity() function as well/instead?

Re: Transform

Posted: Sat Feb 09, 2013 2:41 pm
by Olby
From the help file:
New 'x' position of the mesh, relative to its node.
TransformMesh() supposedly moves the body relative to it its node (centre position), this is different from the "move entity" as it moves the entity together with its "centre of mass". This would make sense, but then again I might be wrong.

Re: Transform

Posted: Sun Feb 10, 2013 1:17 pm
by Comtois
IdeasVacuum wrote:From the Mesh Help (PB5):
A mesh may not be moved or displayed directly, but requires to be manipulated through an entity.
Well, since version 5.10 it is not quite true.
This is true for a mesh loaded with LoadMesh()
This is also true with a mesh created manually using FinishMesh(#True).
But This is wrong with the command FinishMesh(#False). In this case, the mesh can not be used to create an entity, but it can be attached to a node or a bone, see MeshManual2.pb example.