05-26 to do:
1. person too high, (is there problem with the size of model?)
2. go to floor 2.
3. fly mode, do not descend
4. door open animation
5. move too slow
05-26-20:21
发现胶囊的高度高于8.08才可以进门。进入后,加入重力也掉不小来,
看来肯定是模型的尺寸有问题!!!
今天终于做了一点有用的实验,摆放另一个同样高度和尺寸的胶囊形影相随,
其实这个小伎俩我早应该想出来的。
05-27-11:48
发现用unity集成环境,情况不大一样,
现在不敢断定模型尺寸有问题了,
但还是发现好像有看不见的实物作怪。
先把fly mode搞定再说吧!
05-28-06:30
todo:
1. combine First Person and the old UI elements
2. master First Person Law
The “GetAxisRaw” method is used instead of the “GetAxis” because the latter applies smoothing which will make our rotations less responsive.
our horizontalInput and verticalInput variables will return values between -1 and 1. They are the magnitudes of the direction. The right and forward variables return directions as vectors.
ApplyGravityAndJumping可以用一个flag控制一下,flymode不用调用。
The “movement” variable takes the direction and multiplies it by Time.deltaTime * 2. This will slow down the movement to rotate by seconds instead of by frames.