Skip to content

Add AABB/BoundingBox support#46

Open
miberss wants to merge 4 commits intoLuaRocket:mainfrom
miberss:feature/aabb
Open

Add AABB/BoundingBox support#46
miberss wants to merge 4 commits intoLuaRocket:mainfrom
miberss:feature/aabb

Conversation

@miberss
Copy link
Contributor

@miberss miberss commented May 13, 2025

I find that bounding boxes fit with the theme of adding Vectors aswell.

@miberss miberss requested a review from zNotChill as a code owner May 13, 2025 03:04

@TwineNativeFunction
override fun toString(): String {
return "AABB($minProperty, $maxProperty)"
Copy link
Contributor

@zNotChill zNotChill May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styling issue, should reflect the name of the class,
class LuaAABBs : TwineNative("aabb") {
should then be return "aabb($minProperty, $maxProperty)"
not a major issue though

Copy link
Contributor

@zNotChill zNotChill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but lacks unit tests. Please add them!

You can see how the tests work here:
https://github.com/LuaRocket/rocket/tree/main/src/test/kotlin/dev/znci/rocket/scripting/globals/tables

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.

2 participants