What is ControllerAcc...
32 posts • Page 1 of 2 • 1, 2
What is ControllerAcc...
Hi I'm just getting into scripting and stuff and i hear a lot of people using the controllerAcc variable. Can somebody please help the noob and tell me what exactly it does and what effect it makes on the object that has it modified?
Thanks in advance
Thanks in advance
-

EMKshadow - Posts: 29
- Joined: Tue Aug 10, 2010 1:47 am
Re: What is ControllerAcc...
I'm not sure, but isn't that the balue that tells you how fast the object moves, assuming that you've set the controllACC controls? Sorry, i'm not quite sure :S
-

kilebantick - Posts: 1267
- Joined: Tue Sep 01, 2009 9:50 am
Re: What is ControllerAcc...
it affect the geometry controller speed. so kile is right.
the geometry controller is barely used so that value is just used as a place holder to easily store a variable.
the geometry controller is barely used so that value is just used as a place holder to easily store a variable.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: What is ControllerAcc...
That explains everything thanks guys 
-

EMKshadow - Posts: 29
- Joined: Tue Aug 10, 2010 1:47 am
Re: What is ControllerAcc...
Not a problem 
I don't have a need to store values in ControllerACC, because i usually use scene.my variables. HOWEVER, storing information in that field, is very good if you want to make a phunlet friendly scripted object
I don't have a need to store values in ControllerACC, because i usually use scene.my variables. HOWEVER, storing information in that field, is very good if you want to make a phunlet friendly scripted object
-

kilebantick - Posts: 1267
- Joined: Tue Sep 01, 2009 9:50 am
Re: What is ControllerAcc...
Many people use the ControllerAcc because you rarely use it. I also use Color, RefractiveIndex, TextureMatrix, Friction, Restitution, or any other inObject variable that I won't use.
and as Kile' said: It's good if you want to make it phunlet friendly.
and as Kile' said: It's good if you want to make it phunlet friendly.
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: What is ControllerAcc...
Ah that's why people give it random values and have it called by random things lol. I understand it all now!
-

EMKshadow - Posts: 29
- Joined: Tue Aug 10, 2010 1:47 am
Re: What is ControllerAcc...
That's good 
Rideg, it's not a good idea to use the Color variable, or the Texturematrix variable, as sometimes if you have quite a long string in it, it'll get deleted. Happens to me often D:
Rideg, it's not a good idea to use the Color variable, or the Texturematrix variable, as sometimes if you have quite a long string in it, it'll get deleted. Happens to me often D:
-

kilebantick - Posts: 1267
- Joined: Tue Sep 01, 2009 9:50 am
Re: What is ControllerAcc...
I only use them to store some variables sometimes. What do you mean, does the textureMatrix get reset? :O
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: What is ControllerAcc...
i think if there are too many values in the list, it is seen is invalid and is reset as a consequence.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: What is ControllerAcc...
You can also just use e.other.data = *wathever you want*. This will make a new object variable, so no chance of deleting.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
-

Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: What is ControllerAcc...
But you have to use New-Method for that to work properly, and THEN when you save the scenes, the custom variable, or "E.other.data" will completely disappear.
-

kilebantick - Posts: 1267
- Joined: Tue Sep 01, 2009 9:50 am
Re: What is ControllerAcc...
I can't save geomID's when using new method and I've seen scenes on algobox that have theese saved in their scenes 
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: What is ControllerAcc...
Crash course on new method in.. 3.. 2.. 1..
GeomID is now registered as an internal variable inside the object.
- Code: Select all
e.this.geomID := 1;
App.step;
App.undo;
GeomID is now registered as an internal variable inside the object.
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: What is ControllerAcc...
Mystery wrote:Crash course on new method in.. 3.. 2.. 1..
- Code: Select all
e.this.geomID := 1;
App.step;
App.undo;
GeomID is now registered as an internal variable inside the object.
When I save the scene it's not there anymore...
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: What is ControllerAcc...
Run the code in on-collide every time the scene runs.
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: What is ControllerAcc...
I did that and tryed to spawn a fixate between two objects I used e.other.geomID = * it did don work 
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: What is ControllerAcc...
http://www.algodoo.com/algobox/details.php?id=40098
You can either look at the code i used there to improve your own or simply use the same code.
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: What is ControllerAcc...
Mystery wrote:
http://www.algodoo.com/algobox/details.php?id=40098
You can either look at the code i used there to improve your own or simply use the same code.
They don't work for me :O
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: What is ControllerAcc...
Neither for me :O
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
-

Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: What is ControllerAcc...
What version of Algodoo are you using? I think someone said something about new method not working anymore.
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
Re: What is ControllerAcc...
Not at all helpful.
1.7.1 or 1.7.8?
1.7.1 or 1.7.8?
-

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






