569 B
569 B
MercanRey5.js — snapshot() (satır 70)
function snapshot(entity)
{
var pos = entity.getPosition();
var rotations = entity.getRotations();
return {
uuid: String(entity.getUniqueId()),
x: pos.x,
y: pos.y,
z: pos.z,
pitch: rotations.x,
yaw: rotations.y,
yawHead: rotations.z,
wasPositionLocked: entity.isPositionLocked(),
wasRotationLocked: entity.isRotationLocked()
};
}