#why does calcified pustule work like this

5 messages · Page 1 of 1 (latest)

drowsy raft
#

⁨⁨⁨```lua
function ADVR.onGlobalTick()
local vel = BombRef.rigidb.velocity

if vel.x > 1.0 or vel.x < -1.0 then
    vel.x = vel.x * SlowdownFactor
end
if vel.y > 0.0 then
    vel.y = vel.y * SlowdownFactor
end
if vel.z > 1.0 or vel.z < -1.0 then
    vel.z = vel.z * SlowdownFactor
end

if BombRef.rigidb.useGravity == false then
    vel.y = vel.y - 0.1
end

BombRef.rigidb.velocity = vel

end

#

but it continues moving on the X/Z plane while falling

#

technically not a "bug", but i feel like it shouldn't move on X/Z while vel.y is below 0

#

because it moves a very small amount and it looks weird (probably because, once under |1.0| velocity, it just stops updating it)

#

basically, it should either stop updating once the projectile is falling, or just continue updating it once its below 1.0 velocity