#Applying delta movement to entites results in "skipping" movement.
30 messages · Page 1 of 1 (latest)
Paste version of magnet.js from @gray totem
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Im just applying delta movement by .setDeltaMovement
Can you try using .setMotion(x, y, z)
nope, vanishes lol
It probably moves too fast, try dividing the movement by something?
the x,y,z correspond to the position it will move to?
No
oh its the vector
It sets the movement vector
ill try using just that script since I have like 20 on them, maybe something is causing the "skip"
will try it on zombie too
wasn't that
There's a few performance mods out there that restrict item and arrow movements to update every few ticks rather than every tick
When I add the .setDeltaMovement() to an entity manually it works smooth as butter
i tried running the script every 40 ticks and it still skipped
Its still skipping to a different entity
Will try tomorrow without any performace mods, however it works for a single one so maybe the for loop is causing this? Maybe someone will give it a try lol
Alright
now that im messing around with it i think it might just be that the item is on the ground and friction is stopping it from smoothly moving towards the player
although you said you had a script that worked on one entity which if you can you should post it
Will do but I have no Access to PC now
It was basically a setDeltaMovement(new Vec3(0,0.1,0.1)) to the Entity i dropped on ground using the event ItemEvents.dropped - and it also had the setNoGravity(true)