Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to check if Entity WILL be visible from specified position with specified camera angles?

Featured Replies

I want to make function with following signature:

boolean willBeVisible(Entity entity, int cameraX, int cameraY, int yew, int pitch)

or if camera finished moving to reflect player position change: boolean willBeVisible(Entity entity, Position playerPos, int yew, int pitch)

Any ideas where can i take Entity transform into camera space code snippet or how can use OSBot API to achieve this?

Why would you want this? For what specific scenario? 

I'm struggling to understand what you're asking; Do you mean you want to check if the entity is visible when the camera is at a certain yaw/pitch/angle, in relativity to the player? 

  • Author

Yeah, like this. But in addition - if player will be in different location.

42 minutes ago, Saiyan said:

Why would you want this? For what specific scenario? 

For example, to be able detect will be Entity visible after camera movement finish / bot finish walking to destination position or need continue moving towards Entity (do one more click on minimap/tile) so Entity become visible.

I don't script but wouldn't something like isClickable() work? and isn't something like that on the API?

On 4/26/2017 at 0:04 PM, darkxor said:

I want to make function with following signature:

boolean willBeVisible(Entity entity, int cameraX, int cameraY, int yew, int pitch)

or if camera finished moving to reflect player position change: boolean willBeVisible(Entity entity, Position playerPos, int yew, int pitch)

Any ideas where can i take Entity transform into camera space code snippet or how can use OSBot API to achieve this?

I've looked through the game client a while back and the issue always seems to be height. I did find something useful a while back that helped us with certain visibility checks, but models are a bit tricky. Try playing around with pitch, tile height, and model height.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.