Which one is more accurate?
Blitz3D Forums/Blitz3D Programming/Which one is more accurate?
| ||
Which one is more accurate for collison detection? CameraPick, EntityPick, LinePick ?!? |
| ||
entityPick I would guess. But it would only give one object at a time I think... |
| ||
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. |
| ||
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? |
| ||
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? |
| ||
I think there's a demo of how to do that in the samples folder of Blitz3D. It's called FPS or somehing.... |
| ||
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. |