Object raycast 3D

Previous topic - Next topic

JohnnyB

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)?

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

JohnnyB


bigsofty

#3
X_COLLISIONRAY() ?

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

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)