CameraZoom question

Blitz3D Forums/Blitz3D Programming/CameraZoom question

Wow, thanks Stevie G. I don't generally use collisions so the structure of the EntityBox parameters was news to me. I made the mistake of thinking that "position" of the box meant the origin, not the upper left.

The documentation says:

EntityBox entity,x#,y#,z#,width#,height#,depth#
Parameters
entity - entity handle#
x# - x position of entity's collision box
y# - y position of entity's collision box
z# - z position of entity's collision box
width# - width of entity's collision box
height# - height of entity's collision box
depth# - depth of entity's collision box



No mention that the "position" means something different than an entity position.

In any event I was using a pick_geometry of 2, which shouldn't require EntityBox anyway, but still wasn't working for me. pick_geometry of 3 works fine now, once the box is set right.

As soon as I put the correct method of entitybox(-1000000,-1000000,-50,20000000,2000000,1) it works fine!

Oddly, the documentation example for PickedEntity uses a plane, no box, and pick_geometry of 2 (i.e. same as mine was) and does work, but the way I have it now is good enough.)

Thanks again.