Transform

Everything related to 3D programming
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Transform

Post 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?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: Transform

Post 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.
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: Transform

Post 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.
Please correct my english
http://purebasic.developpez.com/
Post Reply