What is e.pos?

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

What is e.pos?

Postby luciano.gonzalez.97 » Sun Nov 06, 2011 11:47 am

I'd like to know what is and where do I have to write e.pos.

Sorry for my english...

Luciano
luciano.gonzalez.97
 
Posts: 3
Joined: Sat Sep 04, 2010 10:00 pm

Re: What is e.pos?

Postby monstertje3 » Sun Nov 06, 2011 12:06 pm

e.pos is the place of a collision, eg object1 collides object2, the place where they meet will be named e.pos.
in scripting you can use this to let something happen on that spot, eg by pos:=e.pos.
if you place that in a script on the right spot, it will happen on the place of the collision
Basically, there are only 10 types of people in the world. Those who know binary, and those who don't.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
User avatar
monstertje3
 
Posts: 343
Joined: Sat Sep 05, 2009 4:29 pm
Location: N-H, NL

Re: What is e.pos?

Postby luciano.gonzalez.97 » Sun Nov 06, 2011 12:43 pm

monstertje3 wrote:e.pos is the place of a collision, eg object1 collides object2, the place where they meet will be named e.pos.
in scripting you can use this to let something happen on that spot, eg by pos:=e.pos.
if you place that in a script on the right spot, it will happen on the place of the collision


OK, let me see if I understand...
pos is the position and e.pos is the position of the "e" object
thanks a lot
luciano.gonzalez.97
 
Posts: 3
Joined: Sat Sep 04, 2010 10:00 pm

Re: What is e.pos?

Postby tatt61880 » Sun Nov 06, 2011 1:20 pm

e is not object name.
e is a default argument identifier for onCollide.
I've prepared one picture and uploaded one scene for this topic. ;)
Image
Rating: rated 5
Filesize: 29.93 kB
Comments: 0
Ratings: 1
download
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: What is e.pos?

Postby luciano.gonzalez.97 » Mon Nov 07, 2011 11:00 am

thank you for the uploaded scene. Now I know what is e
luciano.gonzalez.97
 
Posts: 3
Joined: Sat Sep 04, 2010 10:00 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 4 guests