GLBasic forum

Main forum => GLBasic - en => Topic started by: JohnnyB on 2019-Jul-31

Title: Object raycast 3D
Post by: JohnnyB on 2019-Jul-31
In AGK you can do it like that:

https://www.appgamekit.com/documentation/Reference/3D/GetObjectRayCastX.htm

In GLBasic I can apparently only raycast and get the distance, but not the exact position.

Is there another way?

I think you could calculate it somehow if you have the distance (vector plus vector x distance)?
Title: Re: Object raycast 3D
Post by: Schranz0r on 2019-Aug-02
Take a look at : http://www.glbasic.com/forum/index.php?topic=9773.0
Maybe you get the idea :D
Title: Re: Object raycast 3D
Post by: JohnnyB on 2019-Aug-02
that is great!
Title: Re: Object raycast 3D
Post by: bigsofty on 2019-Aug-03
X_COLLISIONRAY() ?

.Edit: I really should stop skimming posts "but not the exact position" :P. So ignore this.