Keep the speed after eleporting.
Hi!
When my space ship is teleporting to the other side of the screen, the ship stops moving. Is there a way to keep the speed after teleporting?
-
Have you switched the teleporter back off so that the ship can move after it's been teleported.
You could use a signal manipulator to pulse the teleporter so it moves the ship and is no longer powered afterward, letting the ship move again. -
I just wire a trigger to the teleporter, so the teleporter just turns on and off. Maybe the teleporter works like that. It just stop the movement of the object.
I just wish Mm could add a "Set Position" gadget to Dreams. Like in Unity. I just can't make the game like I want, because of this limit. -
I think this is because the teleporter doesn't use physics in anyway, so it short-circuits the physics engine when teleporting.
I think you could do this my adding the velocity yourself. Add a motion sensor, and use its overall velocity output (I believe this is a 3D fat wire value, though can't be sure). Then wire that into a mover's direction and to override its speed (with 100% strength). Have all that on for a frame before and after the teleport, and it should do... something? Probably need fiddling with to get it to work perfectly, but I hope this helps give you some ideas. -
Ah I see. There is certainly a way to achieve what you want, it just needs to be figured out and custom built.
@Supposer, I'm sure you know how variables work (I'm not very familiar with them). Could the outputs of a motion sensor and a rotation sensor be stored as variables and then used to maintain the ships movement after it has teleported? -
This is a fun little problem. I was working on it when you fellas posted. Basically, I pretty much did what Supposer suggested.
I started out with variables, but with so many, I decided to just freeze the motion sensor output, to act like a sort of capacitor.
EDIT by the way, for some reason, the velocity is reduced by a factor of 10 when it exits the portal. Not sure why, but multiplying the stored velocity by 10 was a quick fix. *Shrug*
https://indreams.me/scene/dmnHifWZeoh -
Thank you all for the answers and suggestions. I will try and experiment a bit later. My brain is just a little bit tired. ?
-
If you really wanna punish your brain, check out MrOobleck's stuff. His remixable laser optics demo is way cool, and it has redirectable portals.
-
I will check it out.
Accedi per aggiungere un commento.