AngularVelocity issue
hamhose
Member Posts: 12
Hello
I was playing around with having a wheel actor in a scene with an AngularVelocity of 100, which also changes position to follow the mouse cursor position. Then I put another wheel actor in the scene that I wanted to start to rotate in the opposite direction whenever it collides with the first. I set it to move to 0-AngularVelocity of the first wheel. My thinking was that when I move the first wheel so that it touches the 2nd, the 2nd would rotate in the opposite direction like they are moving against each other. But it doesn't happen. I fiddled around with it, but nothing I do makes the 2nd wheel change it's AngularVelocity to the same (or opposite of) the first wheel. There are only a few really simple rules going on it. Just wondering if there is some restriction about one actor having it's AngularVelocity set to the AngularVelocity of another actor, or if this is a glitch, or if I am just being a noob.
After collision: Change Attribute (self.Motion.angularVelocity) to (0-scene.Background.wheel01.angularVelocity)
Any help is appreciated
I was playing around with having a wheel actor in a scene with an AngularVelocity of 100, which also changes position to follow the mouse cursor position. Then I put another wheel actor in the scene that I wanted to start to rotate in the opposite direction whenever it collides with the first. I set it to move to 0-AngularVelocity of the first wheel. My thinking was that when I move the first wheel so that it touches the 2nd, the 2nd would rotate in the opposite direction like they are moving against each other. But it doesn't happen. I fiddled around with it, but nothing I do makes the 2nd wheel change it's AngularVelocity to the same (or opposite of) the first wheel. There are only a few really simple rules going on it. Just wondering if there is some restriction about one actor having it's AngularVelocity set to the AngularVelocity of another actor, or if this is a glitch, or if I am just being a noob.
After collision: Change Attribute (self.Motion.angularVelocity) to (0-scene.Background.wheel01.angularVelocity)
Any help is appreciated
Comments
Perhaps you have something else that is making it not work. (For example, did you set angular drag on wheel02?) Try starting over with a clean new project that just has the bare essentials (the collision rule and change attribute behavior) in it.
Still doesn't work. Drag and Angular Drag are zero on both.
I can't strip it down much more than that. I'm new enough to Gamesalad that I am not ruling out a stoopid noob blunder that I am not realizing. But the steps outlined above were literally all I did. Just wondering if anyone else has encountered this.
Thanks for sending that file over. I was starting to pull my hair out!