PDA

View Full Version : LeanRIght||LeanLeft



legacy-hocaltar
06-10-2003, 04:26 PM
I am having hyuge problems with leaning... For one, setbonedirection does not want to work at all :-(... Been working on this for too long...

Has anyone successfulyy incorporated leaning? If so could I bother you for a code snippet? This really starting to annoy me, I just finished my reloading code :-) and my player model is done as well as my 1st weapon model. Just leaning and the actual Gametype code stand in my way :cry:

legacy-Verizian
07-13-2003, 09:23 PM
if you want the model to lean from another players perspective or in 3rd person view mode then you need to animate the model leaning.
if you do this in max it can help with getting the 1st person bit sorted too.

make a camera and position it inside the models head and set a spare viewport to view from the camera. this should simulate the first person view.
Then link the camera to the head bone and run through the leaning animation viewing from the camera.

Use this as a reference for coding the in-game first person leaning anims.
then have your code instruct the engine to disable the player controls while leaning and to shift to an outside camera that rotates and shifts to one side to simulate leaning.