LinePick Camera?

Started by Yue, February 21, 2018, 16:25:07

Previous topic - Next topic

Yue

How can I launch a linepic from a camera that always points to the front?

Code (blitzbasic) Select

h = LinePick(xcamera#,ycamera#,zcamera#, 0, 0, 5 ) ; No work.

Yue

#1
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??

STEVIE G

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