Intersect Range (Raw Collision)

Blitz3D Forums/Blitz3D Programming/Intersect Range (Raw Collision)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can do a linepick and get the picked x, y, and z positions (along with the normal of the picked object), from which you can work out essentially the same thing.

so it would actually be something like,

rangePick(EntityNo,srcX#,srcY#,srcZ#,lenX#,lenY#,lenZ#) 
vectorLength#=3ddistance(srcx#,srcy#,srcz#,pickedx(),pickedy(),pickedz())


obviously you need a 3d distance function but I'm sure you can work that one out :)