September 23, 2018, 12:19:35 PM

Author Topic: LinePick Camera?  (Read 352 times)

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
LinePick Camera?
« on: February 21, 2018, 04:25:07 PM »
How can I launch a linepic from a camera that always points to the front?

Code: BlitzBasic
  1. h = LinePick(xcamera#,ycamera#,zcamera#, 0, 0, 5 ) ; No work.
  2.  

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: LinePick Camera?
« Reply #1 on: February 21, 2018, 04:56:02 PM »
http://www.mojolabs.nz/posts.php?topic=53921#2

Okay, looking at the Blitz3D cemetery, now the question is what does the TFormVector command do??

Offline STEVIE G

  • Full Member
  • ***
  • Posts: 214
Re: LinePick Camera?
« Reply #2 on: February 21, 2018, 06:29:37 PM »
Tformvector 0,0,5,CameraEntity, 0

^This gives you the world coords of 5 units directly ahead of the local camera space.

Linepick xcamera, ycamera, zcamera, tformedx(), tformedy(),tformedz()


Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: LinePick Camera?
« Reply #3 on: February 21, 2018, 06:59:49 PM »
Thanks You!