Spawning a box with a specific angle?
11 posts • Page 1 of 1
Spawning a box with a specific angle?
Hello! me again and wondering how to spawn a box with the same angle of another box. Can't explain it better so i'm posting a scene that explains my "problem" better;) Thank you all.
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Spawning a box with a specific angle?
It's exactly the same like here
but you can't use "this.angle" that's no variable in algodoo. and instead of typing := type = because := is the declaring sign.
but you can't use "this.angle" that's no variable in algodoo. and instead of typing := type = because := is the declaring sign.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Spawning a box with a specific angle?
So I type scene.my.thisAngle=what?
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Spawning a box with a specific angle?
yes exactly.
but what you want to type depends on what you want to do with scene.my.thisangle
but what you want to type depends on what you want to do with scene.my.thisangle
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Spawning a box with a specific angle?
You know the box that spwnes in by the red box? Well the spawned boxes angle should be spawned with the same angle as the grey box, and I don't know what to write in the script
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Spawning a box with a specific angle?
which angle do you mean? the grey box has got 4 sides so basically there are 4 angles.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Spawning a box with a specific angle?
It has the angle of zero degrees ( the side were the laser hits it )currently but when it's being rotated the angle changes and so does the scene.my.thisAngle.
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Spawning a box with a specific angle?
where it hits it that's not 0 degrees. it's 270 degrees. if the laser would hit the right side of the box it would be 0 degrees.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Spawning a box with a specific angle?
okey.. but the problem remains how will I get the spawned boxex to have that angle?
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Spawning a box with a specific angle?
angle := scene.my.ang
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Spawning a box with a specific angle?
yeah know that it's updating the variable thats the problem.. I need the grey box angle to tell the variable what number it should have.
make sure to check out my work.
-
Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
11 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 26 guests