Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualmrmohadnan

Posted 06 April 2013 - 03:20 PM

still have some problems with rendering the hands in front of the camera ! ,

bmudn5ir9fjq75z4g.jpg

            // Update Transformation Data of CharachterController
            CharachterControllerPosition = camera.Position;
            CharachterControllerRotaion = Matrix.CreateFromYawPitchRoll(cci.Camera.Yaw,cci.Camera.Pitch,0);
            CharachterControllerWorldTransform = cci.CharacterController.Body.WorldTransform;
            #endregion

            // Update Player
            Matrix translatePlayer = Matrix.CreateTranslation(camera.Position);
            Matrix scalePlayer = Matrix.CreateScale(0.08f);
            Matrix rotatePlayer = Matrix.CreateFromYawPitchRoll(cci.Camera.Yaw, cci.Camera.Pitch, 0) ;
            staticModel.Transform = scalePlayer * rotatePlayer * translatePlayer;

#1mrmohadnan

Posted 06 April 2013 - 02:58 PM

still have some problems with rendering the hands in front of the camera ! ,

 

            // Update Transformation Data of CharachterController
            CharachterControllerPosition = camera.Position;
            CharachterControllerRotaion = Matrix.CreateFromYawPitchRoll(cci.Camera.Yaw,cci.Camera.Pitch,0);
            CharachterControllerWorldTransform = cci.CharacterController.Body.WorldTransform;
            #endregion

            // Update Player
            Matrix translatePlayer = Matrix.CreateTranslation(camera.Position);
            Matrix scalePlayer = Matrix.CreateScale(0.08f);
            Matrix rotatePlayer = Matrix.CreateFromYawPitchRoll(cci.Camera.Yaw, cci.Camera.Pitch, 0) ;
            staticModel.Transform = scalePlayer * rotatePlayer * translatePlayer;

PARTNERS