# MercanRey4.js — getMotionSpeed() (satır 126) [← MercanRey4.js](index.md) · [← Master](../../wiki.md) ```javascript function getMotionSpeed(entity) { var motion = entity.getMotion(); return Math.sqrt(motion.x * motion.x + motion.z * motion.z); } ```