Home > other >  A question about rotary control
A question about rotary control

Time:09-22


Don't know if you play with my world have tried to use the third person to play
He is the rotation of the rotating head position first body motionless, beyond the body position by 60 degrees body begins to rotate

Wanted to mean to try to write about, find difficult

Can someone provide a train of thought very vexed

CodePudding user response:

Limit is rotating, you try to write, post code come out to see if the problem

CodePudding user response:



It was easy to think of it is trouble to write, is primarily a quaternion bad directly calculate the deviation of the z axis heading
Question now is how to control of the body, because the first control steering head, body to turn directly jump value very vexed

CodePudding user response:

Vector3. Angle (Camera. Main. Transform. Forward, the body. The forward);
How much beyond just turn let the body to follow

CodePudding user response:

refer to the second floor response: I am your subject
it was easy to think of it is trouble to write, is primarily a quaternion bad directly calculate the deviation of the z axis heading
Question now is how to control of the body, because the first control steering head, body to turn directly jump value very vexed
bad quaternion whole then try the euler Angle
  • Related