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

Conversation

alicesaidhi
Copy link

Roblox allows passing in multiple CFrame's or Vector3's in functions that convert these into either World space or Object space.
This commit fixes the types to properly reflect that behavior and affects the following functions:
ToWorldSpace
ToObjectSpace
PointToWorldSpace
PointToObjectSpace
VectorToWorldSpace
VectorToObjectSpace

Roblox allows for passing in multiple CFrame's and Vector3's into these functions, but doesn't reflect this in their types.

This change fixes this so that they no longer produce type errors.
@JohnnyMorganz
Copy link
Owner

I remember someone previously submitted the same change. I was hesitant about this because it will break documentation (Roblox's documentation file assumes a one-parameter variant of these functions)

@alicesaidhi
Copy link
Author

is there any way around this?

@Ketasaja
Copy link
Contributor

Roblox/creator-docs#726

@Ketasaja
Copy link
Contributor

Documentation update is live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants