pasting a pistol

Blitz3D Forums/Blitz3D Programming/pasting a pistol

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hello,

You need to attach the mesh to the camera entity using the camera as the parent:

using code archive:
http://www.blitzbasic.com/codearcs/codearcs.php?code=524

PlayerCam = CreateCamera()
gun_mesh = LoadB3D("gun.b3d", PlayerCam)

;then position the gun just in front of the camera:
positionentity gun_mesh 2, -2, 4

Hope this helps. . .