Thanks, that did the trick.zimberzimber wrote:If you want to turn it left/right mid flight, you can change world position.Zo Kath Ra wrote:I'd like to change the direction of a "blob" without destroying it and spawning a new one.
I could use teleporters, but I want to change the direction even if the blob isn't in the center of a square.
Changing the direction to up/down can be done like this:
ProjectileComponent:setVelocity(0)
ProjectileComponent:setFallingVelocity(number)
I can't really post code right now, but you could find an example for this in my asset packs lich.lua (shameless self advertising )
I was only using setPosition() before, which destroyed the blob.
But using setPosition() followed directly by setWorldPosition() works.