EntityID: What is it?
4 posts • Page 1 of 1
Re: EntityID: What is it?
Hmmm.. i used to know..... I believe you can use entityID to make a spawned object be followed by the camera. I think all it is, is a way to identify a specific object or somethin like that.
Although i havent dealt with entityID's in awhile
Also i think this was memtion in the complete scripting tutorial or the Command list....
- Code: Select all
scene.addgroup({ name:= "Follow"; entityID := (whatever the ID is)})
Although i havent dealt with entityID's in awhile
Also i think this was memtion in the complete scripting tutorial or the Command list....
-

niffirg1 - Posts: 376
- Joined: Mon Aug 31, 2009 10:31 pm
- Location: The Great American South!
Re: EntityID: What is it?
entityID - The entity identification number of an object (integer)
From Grady's amazing variable list
viewtopic.php?f=13&t=83
Essentially it's like a license plate to every object, not to be confused with geomID.
To the best of my knowledge entityID is either a secondary ID code or used more so in the actual code of Algodoo (Fairly unimportant to us). In my experience I've always removed it from anything i want to spawn (Caused some issues in an old project of mine).
I'm fairly sure geomID is in relation to the way Algodoo will recognize all objects fixated together as one
IE I Fixate a square with a circle they both share GeomID = 1
Although i may be confusing that with Body
I'll bug Grady to clear things up for us
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: EntityID: What is it?
Mystery wrote:entityID - The entity identification number of an object (integer)
From Grady's amazing variable list
http://www.algodoo.com/forum/viewtopic.php?f=13&t=83
Essentially it's like a license plate to every object, not to be confused with geomID.
To the best of my knowledge entityID is either a secondary ID code or used more so in the actual code of Algodoo (Fairly unimportant to us). In my experience I've always removed it from anything i want to spawn (Caused some issues in an old project of mine).
I'm fairly sure geomID is in relation to the way Algodoo will recognize all objects fixated together as one
IE I Fixate a square with a circle they both share GeomID = 1
Although i may be confusing that with Body
I'll bug Grady to clear things up for us
Ok, a geometry ID (geomID) identifies a geometry, as is implied by the name, geometry IDs are used to attach other objects (such as lasers, hinges and fixates) to geometries. An entity ID (entityID) identifies an entity, entities include geometries, but also lasers, hinges, springs, etc. entity IDs are generally used for widgets, selection groups, plot menus, etc. it is a lot easier to refer to all objects using an entity ID than to refer to some objects with entity IDs and some with geometry IDs.
So basically, geomIDs are for geometries, and entityIDs are for entities.
Hopefully this helped
- gradyfitz
- Posts: 174
- Joined: Tue Sep 01, 2009 8:33 am
- Location: Victoria, Australia
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests




