public static CopyFrom ( Entity from, Entity to ) : void | ||
from | Entity | |
to | Entity | |
return | void |
public static void CopyFrom(Entity from, Entity to)
{
to.position = from.position;
to.rotation = from.rotation;
to.velocity = from.velocity;
to.size = from.size;
to.aabb = from.aabb;
to.name = from.name;
to.visible = from.visible;
}