Jump to content

strange happening [ c++]


cassius
 Share

Recommended Posts

in my fps game a strange effect is occurring. if I press "w" key to move forward and then push forward the mouse my player and camera start going backwards fast and start rising upward way above my map.The only code I have changed in the last 2 days was to change gun from model to prefab.Latest drivers make no difference. Anyone have this problem?

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

After making the gun a child of the player instead of the camera, when I run the game the player/camera moves on its own with no key press. If I remove the gun then everything works fine.

Anyone had a similar problem?

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

I would suspect the physics engine.

Did you try to set the gun mass to zero to disable physics and see if it changes anything ?

or remove collision settings from the gun ?

Windows 7 home - 32 bits

Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...