Pick-up stuff ala halflife

Blitz3D Forums/Blitz3D Beginners Area/Pick-up stuff ala halflife

Morbius(Posted 2007) [#1]
How would you pick-up an object halflife style, Pivot? Parent?

Any pointers appreciated!

Mike


chwaga(Posted 2007) [#2]
you could do
if entityinview(camera, entity) and entitydistance(camera, entity) < 1 and keyhit(57) then
entityparent entity, camera 


however, something like this is best done with a physics engine


stayne(Posted 2007) [#3]
Are you talking about walking into something and it disappearing like health or physically picking it up to throw, like a box or chair?


Morbius(Posted 2007) [#4]
Thank you.

Picking it up so it looks like its stuck to the camera. chwaga's example looks right.

Sounds like I'll need a physics engine if I want to throw it and drop it and stuff.


chwaga(Posted 2007) [#5]
yup :)