Check if Vector3 is in frustum

I know there is a .isInFrustum method for the camera and meshes but what if I have an arbitrary Vector3 position and want to check if that position is in the camera frustum? How can I check for that?

Thanks!

hey!
the fastest way is to create a cube centered on your vector3 and make it unitary :slight_smile:

1 Like

Can’t you just take the function from the boundingSphere class?


https://playground.babylonjs.com/#RBWJX7

2 Likes