Author Topic: Object raycast 3D  (Read 773 times)

Offline JohnnyB

  • Mc. Print
  • *
  • Posts: 37
    • View Profile
Object raycast 3D
« 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)?

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5073
  • O Rly?
    • View Profile
Re: Object raycast 3D
« Reply #1 on: 2019-Aug-02 »
Take a look at : http://www.glbasic.com/forum/index.php?topic=9773.0
Maybe you get the idea :D
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline JohnnyB

  • Mc. Print
  • *
  • Posts: 37
    • View Profile
Re: Object raycast 3D
« Reply #2 on: 2019-Aug-02 »
that is great!

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2697
    • View Profile
Re: Object raycast 3D
« Reply #3 on: 2019-Aug-03 »
X_COLLISIONRAY() ?

.Edit: I really should stop skimming posts "but not the exact position" :P. So ignore this.
« Last Edit: 2019-Aug-05 by bigsofty »
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)