Jump to content

aabb:IntersectsPoint


Alienhead
 Share

Go to solution Solved by Josh,

Recommended Posts

( LUA ) 

I'm just putting this here for a reminder, I know you've told me in Discord it's declared but I can promise you it's not working in LUA.. At least not in my build.

It hangs on the IntersectsPoint command.
The command 
Brush::IntersectsPoint is in and working.. But haven't got aabb working.
The lack of this command has me held up currently, but hopefully it's an easy fix?

 

box=CreateBox(world)
aabb = box:GetBounds(BOUNDS_LOCAL)
aabb:IntersectsPoint(Vec3(1,1,1))

 

Link to comment
Share on other sites

  • Solution

The error is on IntersectsPoint. I am testing it in the editor console.

Ah, I see. There is an extra padding argument you must supply:
aabb:IntersectsPoint(Vec3(0), 0)

I will add an overload so this is not required.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

If you are using the debug build, it should not "hang". It should show an error and open the code file on the line where the error occurs.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...