13 lines
285 B
Markdown
13 lines
285 B
Markdown
# MercanRey2.js — getMotionSpeed() (satır 392)
|
||
|
||
[← MercanRey2.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);
|
||
}
|
||
```
|