Constant velocity
Dizko
Member Posts: 498
Hello again!
I've been trying to figure out a way to apply constant velocity, I'm sure there some magic math equation or something that could do it, but the solution is eluding me.
Right now I have an actor that when it collides with actor2, actor2 gets a linear velocity of 100.
I want that velocity to remain constant while the 2 are colliding, the problem I'm getting is that if actor2 hits a wall, you have to move actor1 away and then re-collide with actor2 to get it moving again.
I thought that instead of simply setting the velocity to 100, that I would multiply the current velocity by 100 and then cap it at a max of 100, that way it's always multiplying so if actor2 slows down from hitting a wall or another object, it would keep the pressure on so to speak.
Problem is, I've only been working with GS for a few days, and haven't the slightest idea how I would set that up.
Any thoughts from the gurus?
I've been trying to figure out a way to apply constant velocity, I'm sure there some magic math equation or something that could do it, but the solution is eluding me.
Right now I have an actor that when it collides with actor2, actor2 gets a linear velocity of 100.
I want that velocity to remain constant while the 2 are colliding, the problem I'm getting is that if actor2 hits a wall, you have to move actor1 away and then re-collide with actor2 to get it moving again.
I thought that instead of simply setting the velocity to 100, that I would multiply the current velocity by 100 and then cap it at a max of 100, that way it's always multiplying so if actor2 slows down from hitting a wall or another object, it would keep the pressure on so to speak.
Problem is, I've only been working with GS for a few days, and haven't the slightest idea how I would set that up.
Any thoughts from the gurus?
Comments
Asymptoteell