Spawning With Same Velocity
4 posts • Page 1 of 1
Spawning With Same Velocity
Okay I know there's already a topic about something like this, but I'm not sure it's about the same exact thing.
What I want to do is spawn something at the same exact velocity as the spawner. I've tried looking in the forums with the search function, and tried looking in the algobox, but I can't find anything that tells me exactly how.
Think somebody could help me out?
What I want to do is spawn something at the same exact velocity as the spawner. I've tried looking in the forums with the search function, and tried looking in the algobox, but I can't find anything that tells me exactly how.
Think somebody could help me out?

-

FruitMonger - Posts: 135
- Joined: Thu Dec 10, 2009 8:20 pm
- Location: Some fruit stand in Indiana
Re: Spawning With Same Velocity
Use Kilinich's K-probe (Laser Edition) and set the velocity of a spawned object to vel:=K1velocity or what ever his variable was.
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Spawning With Same Velocity
- Code: Select all
textureMatrix=[e.pos(0)-textureMatrix(2),e.pos(1)-textureMatrix(3),e.pos(0),e.pos(1)(textureMatrix(0)^2+textureMatrix(1)^2)^0.5,0,0,0];
Credit to davidz40 for this code.
You'll want to set vel := [textureMatrix(0), textureMatrix(1)].
textureMatrix(4) is the magnitude of the velocity vector.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests




