cassius Posted June 19, 2016 Posted June 19, 2016 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? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
cassius Posted June 21, 2016 Author Posted June 21, 2016 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? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Wchris Posted June 22, 2016 Posted June 22, 2016 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 ? Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM
cassius Posted June 22, 2016 Author Posted June 22, 2016 The gun has a physics body. I will remove it and see if that works. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
cassius Posted June 22, 2016 Author Posted June 22, 2016 Thanks Wchris. That fixed it. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Recommended Posts
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.