Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Add Model:GetBoundingBox() #47

Open
Kampfkarren opened this issue May 1, 2021 · 3 comments
Open

Add Model:GetBoundingBox() #47

Kampfkarren opened this issue May 1, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@Kampfkarren
Copy link
Member

https://developer.roblox.com/en-us/api-reference/function/Model/GetBoundingBox

This is useful as a system I have relies on the bounding boxes of possible zones that it can allocate to create a grid with cells of the biggest size.

This can be done at runtime, but this would require the server to then replicate this information to the client (which also needs to know the cell size, for different purposes), making it an asynchronous operation, which is not ideal. The better solution is to pre-compute this and store that information in a ModuleScript. I can do this with a plugin, but it is preferable that remodel does this to limit manual work.

@LPGhatguy
Copy link
Contributor

Starting to involve interesting vector math will definitely expand the scope of Remodel. I'm willing to start working towards this proposal in pieces, though! #46 is a step in the right direction.

@Kampfkarren
Copy link
Member Author

That's fine by me.

It might be a bit over-engineered, but it might be possible for more complicated behaviors like these to be split up into separate crates? As in, I could build a remodel-get-bounding-box crate, and choose to include it, or something like that.

@LPGhatguy
Copy link
Contributor

I think that's a bit too fine-grained. A crate that adds a bunch of interesting math operations to the rbx_types types would be welcome I think, though.

@LPGhatguy LPGhatguy added the enhancement New feature or request label Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants