entitypick dependent on entitysize?

Blitz3D Forums/Blitz3D Programming/entitypick dependent on entitysize?

Scale does indeed affect pick range.

Try this demo, use up and down arrow to change scale.

Graphics3D 800,600,32
SetBuffer BackBuffer()

cam=CreateCamera()
s1=CreateSphere()
s2=CreateSphere()
c1=CreateCube()

PositionEntity cam,-50,50,0
PointEntity cam,c1

EntityPickMode c1,1,False

PositionEntity s1,0,0,20
PositionEntity s2,0,0,-20
PointEntity s1,c1
PointEntity s2,c1


s#=1
While Not KeyHit(1)

If KeyDown(200) Then s=s+0.1
If KeyDown(208) Then s=s-0.1

ScaleEntity s2,s,s,s

RenderWorld
Text 0,0,"s1-c1 "+EntityPick(s1,10)
Text 0,20,"s2-c1 "+EntityPick(s2,10)
Text 0,40,"scale of s2 "+s
 
Flip

Wend