Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Static Raycast returns 0, documentation unclear.

Author
Message
DoerrSt
16
Years of Service
User Offline
Joined: 19th Feb 2010
Location:
Posted: 27th Sep 2011 12:20
Hello,

I've done some tests with the command "Static Raycast" to receive the height of a object. Unfortunately the command Returns "0" everytime I execute it.

According to the help:

Quote: ""If there is no intersection, this value is zero. If there was an intersection, this value is the distance to the closest intersection point. This is an extremely useful command, and returns a lot of information, which is stored in the DarkBASIC Professional checklist. It allows for many actions, such as easy placement of decals, and vectors for bouncing objects off walls. You will note that a new command, checklist fvalue() has been introduced to return floats. The data returned is as follows:

Check "
"



It should return the distance between Point A and Point B. Also I couldn't find a checklist "checklist fvalue a()" after execug the command neither something like a "perform checklist fvalue" which could make the additional(?) results available.

Anyone got this running?

I have a large object (converted to static object) in my word (ground object) and need to receive the height on a specific position to place other objects.

Thanks for any hints.

PS: Sorry for the crosspost. This surely belongs to DBP instead of DBC
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Sep 2011 15:31
Can you show example code?

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-11 14:36:16
Your offset time is: 2026-07-11 14:36:16