Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CFrame ToWorldSpace/ToObjectSpace function type #671

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions scripts/dumpRobloxTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@
"ControllerPartSensor": [
"SensedPart",
],
"CFrame": [
"ToWorldSpace",
"ToObjectSpace",
"PointToWorldSpace",
"PointToObjectSpace",
"VectorToWorldSpace",
"VectorToObjectSpace"
]
}

# Extra members to add in to classes, commonly used to add in metamethods, and add corrections
Expand Down Expand Up @@ -302,6 +310,12 @@
"function __unm(self): UDim",
],
"CFrame": [
"function ToWorldSpace(self, ...: CFrame): ...CFrame",
"function ToObjectSpace(self, ...: CFrame): ...CFrame",
"function PointToWorldSpace(self, ...: Vector3): ...Vector3",
"function PointToObjectSpace(self, ...: Vector3): ...Vector3",
"function VectorToWorldSpace(self, ...: Vector3): ...Vector3",
"function VectorToObjectSpace(self, ...: Vector3): ...Vector3",
"function __add(self, other: Vector3): CFrame",
"function __sub(self, other: Vector3): CFrame",
"function __mul(self, other: CFrame): CFrame",
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.LocalUserSecurity.d.luau
Original file line number Diff line number Diff line change
Expand Up @@ -4270,17 +4270,17 @@ declare class CFrame
function Inverse(self): CFrame
function Lerp(self, goal: CFrame, alpha: number): CFrame
function Orthonormalize(self): CFrame
function PointToObjectSpace(self, v3: Vector3): Vector3
function PointToWorldSpace(self, v3: Vector3): Vector3
function PointToObjectSpace(self, ...: Vector3): ...Vector3
function PointToWorldSpace(self, ...: Vector3): ...Vector3
function ToAxisAngle(self): (Vector3, number)
function ToEulerAngles(self, order: EnumRotationOrder?): (number, number, number)
function ToEulerAnglesXYZ(self): (number, number, number)
function ToEulerAnglesYXZ(self): (number, number, number)
function ToObjectSpace(self, cf: CFrame): CFrame
function ToObjectSpace(self, ...: CFrame): ...CFrame
function ToOrientation(self): (number, number, number)
function ToWorldSpace(self, cf: CFrame): CFrame
function VectorToObjectSpace(self, v3: Vector3): Vector3
function VectorToWorldSpace(self, v3: Vector3): Vector3
function ToWorldSpace(self, ...: CFrame): ...CFrame
function VectorToObjectSpace(self, ...: Vector3): ...Vector3
function VectorToWorldSpace(self, ...: Vector3): ...Vector3
function __add(self, other: Vector3): CFrame
function __mul(self, other: CFrame): CFrame
function __mul(self, other: Vector3): Vector3
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.None.d.luau
Original file line number Diff line number Diff line change
Expand Up @@ -4270,17 +4270,17 @@ declare class CFrame
function Inverse(self): CFrame
function Lerp(self, goal: CFrame, alpha: number): CFrame
function Orthonormalize(self): CFrame
function PointToObjectSpace(self, v3: Vector3): Vector3
function PointToWorldSpace(self, v3: Vector3): Vector3
function PointToObjectSpace(self, ...: Vector3): ...Vector3
function PointToWorldSpace(self, ...: Vector3): ...Vector3
function ToAxisAngle(self): (Vector3, number)
function ToEulerAngles(self, order: EnumRotationOrder?): (number, number, number)
function ToEulerAnglesXYZ(self): (number, number, number)
function ToEulerAnglesYXZ(self): (number, number, number)
function ToObjectSpace(self, cf: CFrame): CFrame
function ToObjectSpace(self, ...: CFrame): ...CFrame
function ToOrientation(self): (number, number, number)
function ToWorldSpace(self, cf: CFrame): CFrame
function VectorToObjectSpace(self, v3: Vector3): Vector3
function VectorToWorldSpace(self, v3: Vector3): Vector3
function ToWorldSpace(self, ...: CFrame): ...CFrame
function VectorToObjectSpace(self, ...: Vector3): ...Vector3
function VectorToWorldSpace(self, ...: Vector3): ...Vector3
function __add(self, other: Vector3): CFrame
function __mul(self, other: CFrame): CFrame
function __mul(self, other: Vector3): Vector3
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.PluginSecurity.d.luau
Original file line number Diff line number Diff line change
Expand Up @@ -4270,17 +4270,17 @@ declare class CFrame
function Inverse(self): CFrame
function Lerp(self, goal: CFrame, alpha: number): CFrame
function Orthonormalize(self): CFrame
function PointToObjectSpace(self, v3: Vector3): Vector3
function PointToWorldSpace(self, v3: Vector3): Vector3
function PointToObjectSpace(self, ...: Vector3): ...Vector3
function PointToWorldSpace(self, ...: Vector3): ...Vector3
function ToAxisAngle(self): (Vector3, number)
function ToEulerAngles(self, order: EnumRotationOrder?): (number, number, number)
function ToEulerAnglesXYZ(self): (number, number, number)
function ToEulerAnglesYXZ(self): (number, number, number)
function ToObjectSpace(self, cf: CFrame): CFrame
function ToObjectSpace(self, ...: CFrame): ...CFrame
function ToOrientation(self): (number, number, number)
function ToWorldSpace(self, cf: CFrame): CFrame
function VectorToObjectSpace(self, v3: Vector3): Vector3
function VectorToWorldSpace(self, v3: Vector3): Vector3
function ToWorldSpace(self, ...: CFrame): ...CFrame
function VectorToObjectSpace(self, ...: Vector3): ...Vector3
function VectorToWorldSpace(self, ...: Vector3): ...Vector3
function __add(self, other: Vector3): CFrame
function __mul(self, other: CFrame): CFrame
function __mul(self, other: Vector3): Vector3
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.RobloxScriptSecurity.d.luau
Original file line number Diff line number Diff line change
Expand Up @@ -4270,17 +4270,17 @@ declare class CFrame
function Inverse(self): CFrame
function Lerp(self, goal: CFrame, alpha: number): CFrame
function Orthonormalize(self): CFrame
function PointToObjectSpace(self, v3: Vector3): Vector3
function PointToWorldSpace(self, v3: Vector3): Vector3
function PointToObjectSpace(self, ...: Vector3): ...Vector3
function PointToWorldSpace(self, ...: Vector3): ...Vector3
function ToAxisAngle(self): (Vector3, number)
function ToEulerAngles(self, order: EnumRotationOrder?): (number, number, number)
function ToEulerAnglesXYZ(self): (number, number, number)
function ToEulerAnglesYXZ(self): (number, number, number)
function ToObjectSpace(self, cf: CFrame): CFrame
function ToObjectSpace(self, ...: CFrame): ...CFrame
function ToOrientation(self): (number, number, number)
function ToWorldSpace(self, cf: CFrame): CFrame
function VectorToObjectSpace(self, v3: Vector3): Vector3
function VectorToWorldSpace(self, v3: Vector3): Vector3
function ToWorldSpace(self, ...: CFrame): ...CFrame
function VectorToObjectSpace(self, ...: Vector3): ...Vector3
function VectorToWorldSpace(self, ...: Vector3): ...Vector3
function __add(self, other: Vector3): CFrame
function __mul(self, other: CFrame): CFrame
function __mul(self, other: Vector3): Vector3
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.d.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4270,17 +4270,17 @@ declare class CFrame
function Inverse(self): CFrame
function Lerp(self, goal: CFrame, alpha: number): CFrame
function Orthonormalize(self): CFrame
function PointToObjectSpace(self, v3: Vector3): Vector3
function PointToWorldSpace(self, v3: Vector3): Vector3
function PointToObjectSpace(self, ...: Vector3): ...Vector3
function PointToWorldSpace(self, ...: Vector3): ...Vector3
function ToAxisAngle(self): (Vector3, number)
function ToEulerAngles(self, order: EnumRotationOrder?): (number, number, number)
function ToEulerAnglesXYZ(self): (number, number, number)
function ToEulerAnglesYXZ(self): (number, number, number)
function ToObjectSpace(self, cf: CFrame): CFrame
function ToObjectSpace(self, ...: CFrame): ...CFrame
function ToOrientation(self): (number, number, number)
function ToWorldSpace(self, cf: CFrame): CFrame
function VectorToObjectSpace(self, v3: Vector3): Vector3
function VectorToWorldSpace(self, v3: Vector3): Vector3
function ToWorldSpace(self, ...: CFrame): ...CFrame
function VectorToObjectSpace(self, ...: Vector3): ...Vector3
function VectorToWorldSpace(self, ...: Vector3): ...Vector3
function __add(self, other: Vector3): CFrame
function __mul(self, other: CFrame): CFrame
function __mul(self, other: Vector3): Vector3
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.d.luau

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.