Object
Client
Server
The object visible in the hierarchy. Every object has a transform and can have additional components attached to it.
Metamethods
boolean __eq(Object a, Object b)
Methods
Vec3 LocalToWorld(Vec3 point)
Transforms a local position to world space, allowing you to convert coordinates relative to an object into global coordinates.
Vec3 WorldToLocal(Vec3 point)
Converts a world position to local space, making it useful for determining an object's position relative to another object.
Vec3 LocalToWorldVec(Vec3 vec)
Vec3 WorldToLocalVec(Vec3 vec)
nil LookAt(Vec3 pos, Vec3? up)
Rotates the object to face the given world point (optional up vector).
Object? GetChild(string name)
Get child object by name