EntityID: What is it?

About advanced scenes, and the Thyme scripting language used in Algodoo.

EntityID: What is it?

Postby Rideg » Mon Sep 13, 2010 11:01 pm

What is EntityID? :shock:
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: EntityID: What is it?

Postby niffirg1 » Tue Sep 14, 2010 3:59 am

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.
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....
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: EntityID: What is it?

Postby Mystery » Tue Sep 14, 2010 12:08 pm

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 :P
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: EntityID: What is it?

Postby gradyfitz » Tue Sep 14, 2010 1:24 pm

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 :P

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 :).
Mechanisms: 18 Mechanisms.
Thyme: Tutorial - Variables/Commands List.
Thymechanic
gradyfitz
 
Posts: 174
Joined: Tue Sep 01, 2009 8:33 am
Location: Victoria, Australia


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests