From 6a1e5ec356b20e51c979c931958c973f031ffe27 Mon Sep 17 00:00:00 2001 From: rimuy <46044567+rimuy@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:02:35 -0300 Subject: [PATCH] Add `CFrame.lookAlong` constructor (#1143) https://create.roblox.com/docs/reference/engine/datatypes/CFrame#lookAlong --- include/roblox.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/roblox.d.ts b/include/roblox.d.ts index 51dcd5524d..12e5349ff3 100644 --- a/include/roblox.d.ts +++ b/include/roblox.d.ts @@ -1393,6 +1393,12 @@ interface CFrameConstructor { * This function replaces the `CFrame.new(Vector3, Vector3)` constructor which accomplished a similar task. This function allows you to specify the `up` Vector, using the same default as the old constructor. */ lookAt: (at: Vector3, lookAt: Vector3, up?: Vector3) => CFrame; + /** + * Returns a new CFrame with the position of `at` and facing along `direction`, optionally specifying the upward direction (`up`) with a default of `(0, 1, 0)`. + * + * This constructor is equivalent to `CFrame.lookAt(at, at + direction)`. + */ + lookAlong: (at: Vector3, direction: Vector3, up?: Vector3) => CFrame; /** Creates a CFrame from a Vector3 */ new (pos: Vector3): CFrame; /** Creates a CFrame from position (x, y, z). */