m_Name.transform.LookAt(Camera.main.transform.position);
m_Name.transform.rotation = Quaternion.Slerp(m_Name.transform.rotation, Quaternion.LookRotation(Camera.main.transform.position - m_Name.transf...
分类:
编程语言 时间:
2015-04-28 11:42:23
阅读次数:
305
一、角的两种单位 “ 弧度”和“度”是度量角大小的两种不同的单位。就像“米”和“市尺”是度量长度大小的两种不同的单位一样。 在flash里规定:在旋转角度(rotation)里的角,以“度”为单位;而在三角函数里的角要以“弧度”为单位。这个规定是我们首先要记住的!!!例如:rotation2--是....
分类:
其他好文 时间:
2015-04-18 15:56:54
阅读次数:
203
/*** Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.** The difference between `setRotationalSkew()` an...
在9.3.1中,可在“树”要素类的属性表里,计算一组0、1、2的随机数,赋值给每棵“树”。然后,基于这个随机值,用Graduated Symbols符号化“树”,实现“树”符号的随机大小。如想旋转每棵树,可以使用相同的方法,计算一组代表旋转角度的随机数,然后用Rotation实现“树”符号的随机旋转。...
分类:
其他好文 时间:
2015-04-09 13:51:49
阅读次数:
240
http://httpd.apache.org/docs/2.2/logs.htmlLog Rotation日志轮替On even a moderately busy server, the quantity of information stored in the log files is ver...
分类:
Web程序 时间:
2015-04-03 19:04:26
阅读次数:
158
View Animation定义了下面的四种动画效果: 缩放(scale)、位移(translation)、旋转(rotation)、透明(alpha) 缩放动画: ScaleAnimation(float fromX, float toX, float fromY, float toY, floa...
分类:
其他好文 时间:
2015-04-02 18:50:04
阅读次数:
152
计算过程如下:1,通过由主角中心raycast一条竖直射线获得主角所在处地面法线,用作主角的newUp。2,根据主角forward和newUp计算newForward。3,使用Quaternion.LookRotation (newForward, newUp)获得主角新的rotation。结果如图...
分类:
编程语言 时间:
2015-03-31 14:18:34
阅读次数:
194
首先是被雨松大大唤醒的数学知识,代码参考自这里:
using UnityEngine;
using System.Collections;
public class TestRot : MonoBehaviour {
public Transform target;
void Start()
{
//四元数rotation的一些运算
...
分类:
编程语言 时间:
2015-03-29 18:08:56
阅读次数:
363
1、Timeline
struct Timeline {
const void* const vtable;
};2、BoneData:骨骼数据
struct BoneData {
const char* const name;
BoneData* const parent;
float length;
float x, y;
float rotation;
float scal...
分类:
其他好文 时间:
2015-03-28 17:20:27
阅读次数:
143
用prefab创建的实例,其position/rotation/scale并不会随prefab的position/rotation/scale修改而更新,其它属性才会。不过如果prefab的某个实例a,通过Apply修改了prefab的position/rotation/scale,则此实例a的po...
分类:
编程语言 时间:
2015-03-21 21:09:02
阅读次数:
152