Changing collisionset on collide
29 posts • Page 1 of 2 • 1, 2
Changing collisionset on collide
e.geom.collideset = X
Doesnt work when collide
Never mind
NVM
Doesnt work when collide
Never mind
NVM
Last edited by docg on Fri Mar 12, 2010 4:15 am, edited 1 time in total.
- docg
- Posts: 17
- Joined: Thu Nov 12, 2009 12:31 am
Re: Changing collisionset on collide
use := to set collideset
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
cellers wrote:use := to set collideset
No, you don't. Only if you're spawning it. KB already told him the answer.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Changing collisionset on collide
Chronos wrote:cellers wrote:use := to set collideset
No, you don't. Only if you're spawning it. KB already told him the answer.
It is safer to use ": =" in both cases.
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
No it's not. := isn't for that. := is for spawning (and a safer way to create variables). Not for changing an pre-existing variable.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Changing collisionset on collide
Chronos
No difference. things that are for anything you can use for other purposes
No difference. things that are for anything you can use for other purposes
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
difference is it spams algodoo console then corrects your code assuming its a typo which costs performance
- Mr_Stabby
- Posts: 155
- Joined: Wed Dec 16, 2009 12:16 am
Re: Changing collisionset on collide
Mr_Stabby
So we must ask
programmers to make algodoo correcting code once.
So we must ask
programmers to make algodoo correcting code once.
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
Or maybe you should just use the right symbol.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Changing collisionset on collide
Plus, it's also a way for Algodoo to know whether you're declaring a new variable or simply just changing its value.
Last edited by RicH on Sun Mar 28, 2010 1:11 pm, edited 1 time in total.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
-

RicH - [Funniest Person 2010]
- Posts: 2043
- Joined: Tue Sep 01, 2009 9:01 am
Re: Changing collisionset on collide
Yes, a good example of this is when creating variables.
Thyme is a language like English or Russian, Algodoo registers thyme as if you i were talking to it in plain English, if i were to say "change density to 11" that would make perfect sense. If i were to say "Create a variable called density and make it 11" For obvious reasons it would be very confusing.
Thyme is a language like English or Russian, Algodoo registers thyme as if you i were talking to it in plain English, if i were to say "change density to 11" that would make perfect sense. If i were to say "Create a variable called density and make it 11" For obvious reasons it would be very confusing.
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: Changing collisionset on collide
Mystery wrote:Yes, a good example of this is when creating variables.
Thyme is a language like English or Russian, Algodoo registers thyme as if you i were talking to it in plain English, if i were to say "change density to 11" that would make perfect sense. If i were to say "Create a variable called density and make it 11" For obvious reasons it would be very confusing.
Poor example, I think.
You can speak in English or in Russian, using many different words, but the script just two words that means "assign the value" and "create and assign the value"
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
{e.other.post == rebuttal }?{e.this.post = "Bah! its still a language"}:{e.this.post = "I'm glad you agree with me"}
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: Changing collisionset on collide
Mystery wrote:{e.other.post == rebuttal }?{e.this.post = "Bah! its still a language"}:{e.this.post = "I'm glad you agree with me"}
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
sorry but i would have to say that it is better to use ":=" e.other.collideset :=(what you want the collideset to be) but when doing the collideset thing make sure not to write the collideset letter like A-B-C etc. Instead use there numbers, a=1 b=2 c=4 d=8 e=16 f=32 g=64 then add the ones you need. for example if i want it to change the collideset to be both a and b it would be a+b or 1+2 or "3"
canadian joe wrote:im just writing this so i can sig it
RicH wrote:Phun's Army.
-

canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
Re: Changing collisionset on collide
canadian joe wrote:sorry but i would have to say that it is better to use ":=" e.other.collideset :=(what you want the collideset to be) but when doing the collideset thing make sure not to write the collideset letter like A-B-C etc. Instead use there numbers, a=1 b=2 c=4 d=8 e=16 f=32 g=64 then add the ones you need. for example if i want it to change the collideset to be both a and b it would be a+b or 1+2 or "3"
it is easy if you know it
I long to write about it, but I thought that this topic has already been raised.
Russian Elite Forces 
Now, in case of war, I can go to Airborne.

Now, in case of war, I can go to Airborne.

-

cellers - Posts: 145
- Joined: Fri Mar 26, 2010 5:32 pm
- Location: Russian Federation
Re: Changing collisionset on collide
canadian joe wrote:sorry but i would have to say that it is better to use ":="
It's not. You use := when creating a variable or spawning an object. You use = when changing a variable, which is what he's doing. Seriously, you two are wrong, so stop arguing with us about it.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Changing collisionset on collide

while we're at it lets lets start calling all non-white ethnicities nignogs coz its easyer and makes no difference to me
- Mr_Stabby
- Posts: 155
- Joined: Wed Dec 16, 2009 12:16 am
Re: Changing collisionset on collide
Most likely... 
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
-

RicH - [Funniest Person 2010]
- Posts: 2043
- Joined: Tue Sep 01, 2009 9:01 am
Re: Changing collisionset on collide
Man, that was rich. 
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Changing collisionset on collide
well, i guess that settles it. just use = instead of :=
canadian joe wrote:im just writing this so i can sig it
RicH wrote:Phun's Army.
-

canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
Re: Changing collisionset on collide
Not always.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
-

RicH - [Funniest Person 2010]
- Posts: 2043
- Joined: Tue Sep 01, 2009 9:01 am
Re: Changing collisionset on collide
Yes lets repeat this whole thread all over again.
Thyme is a language. SPEAK PROPER THYME!
= To change!
:= To create!
Thyme is a language. SPEAK PROPER THYME!
= To change!
:= To create!
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
29 posts • Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 5 guests





