Which one is more accurate?

Blitz3D Forums/Blitz3D Programming/Which one is more accurate?

Kozmi(Posted 2004) [#1]
Which one is more accurate for collison detection?

CameraPick, EntityPick, LinePick ?!?


Picklesworth(Posted 2004) [#2]
entityPick I would guess. But it would only give one object at a time I think...


bradford6(Posted 2004) [#3]
accuracy is subjective.
they do different things:

CameraPick ( camera,viewport_x#,viewport_y# )

EntityPick ( entity,range# )

LinePick ( x#,y#,z#,dx#,dy#,dz#[,radius#] )

however,

line pick has more definable attributes and therefore could be considered moe accurate.


Picklesworth(Posted 2004) [#4]
actually, what kind of collision detection are you thinking of doctor? Is this to speed up collision detection by only checking nearby objects, or something else?


Kozmi(Posted 2004) [#5]
Actually!! Im' needing it for shooting enemies with a gun!
I just wanted to know which one would be the best route to use for this?


elseano(Posted 2004) [#6]
I think there's a demo of how to do that in the samples folder of Blitz3D. It's called FPS or somehing....


Ross C(Posted 2004) [#7]
One, constant linepick would be all you need for your gun. When the gun is fired, the enemy that has been picked, by the linepick, is shot.