player.pan question

Posted By: GameScore

player.pan question - 12/06/13 22:51

got a another question with pan of an entity

i was try to find a way, but i`m blind to find it cry


i want to change the point of players.pan
should not rotate in the middle of itself

how can i change this?
Posted By: CanadianDavid

Re: player.pan question - 12/07/13 01:26

Modifying player.pan will rotate on the central axis (0,0) of the model. You can rotate the model along a different axis by offsetting the model away from the central axis in MED.
Posted By: EpsiloN

Re: player.pan question - 12/07/13 05:37

The point around wich you rotate a model is the center of the model defined in the modeling program...

Open the model in MED and move the whole mesh, place the center arrows where you want your model center to be, but keep in mind, for player characters, the center point has to be above the feet, or you'll have problems with collision detection. Atleast I had with the previous versions (A6,A5,A4).
Posted By: GameScore

Re: player.pan question - 12/08/13 10:57

Tnx, in find my solution to modify the cam code wink
Posted By: DLively

Re: player.pan question - 12/08/13 14:58

or you could use a separate entity that holds the cameras action / function and move the separate entity around the player (not exactly sure what you're trying to achieve). I also agree with Epsilon - that is good practice.
© 2023 lite-C Forums