Alright here's the low down...I have a first person shooter, and everything is working great except for the loaded in weapon. When I get it to the appropriate place on screeen, it interacts with the enviroment. I know the gun shouldn't go through walls, or stop you from getting close to them. I have tried a few things and it is becoming very frustrating. Does anyone have a good hint or tip for me??
Here's some of my coding...
;-------------------------------------------------------
Type weapon
Field kind
Field x,y,z
Field model
End Type
Global pistol.weapon = New weapon
pistol\kind = 1
pistol\x = .10
pistol\y = -.15
pistol\z = 1.15
pistol\model = LoadMesh("gun.3ds,(user\cam))
PositionEntity pistol\model,pistol\x,pistol\y,pistol\z
ScaleEntity pistol\model,.50,.50,.50
;---------------------------------------------------------
To sum it up the gun is colliding with walls, and if I bring it closer to the camera then the gun no longer looks appropriate. Plz Help??
Here's some of my coding...
;-------------------------------------------------------
Type weapon
Field kind
Field x,y,z
Field model
End Type
Global pistol.weapon = New weapon
pistol\kind = 1
pistol\x = .10
pistol\y = -.15
pistol\z = 1.15
pistol\model = LoadMesh("gun.3ds,(user\cam))
PositionEntity pistol\model,pistol\x,pistol\y,pistol\z
ScaleEntity pistol\model,.50,.50,.50
;---------------------------------------------------------
To sum it up the gun is colliding with walls, and if I bring it closer to the camera then the gun no longer looks appropriate. Plz Help??