码迷,mamicode.com
首页 >  
搜索关键字:rotation    ( 305个结果
Unity3D始终让物体面向主摄像机
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
看文档要看仔细,英语要加强啊... cocos2d-x 的 API 和 对应版本的 cocos2d-js 的 API 没有完全对应
/*** Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.** The difference between `setRotationalSkew()` an...
分类:Windows程序   时间:2015-04-09 21:42:11    阅读次数:177
如何随机改变 ArcGIS 10 中“树”符号的大小和旋转角度
在9.3.1中,可在“树”要素类的属性表里,计算一组0、1、2的随机数,赋值给每棵“树”。然后,基于这个随机值,用Graduated Symbols符号化“树”,实现“树”符号的随机大小。如想旋转每棵树,可以使用相同的方法,计算一组代表旋转角度的随机数,然后用Rotation实现“树”符号的随机旋转。...
分类:其他好文   时间:2015-04-09 13:51:49    阅读次数:240
httpd-2.2
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
View Animation定义了下面的四种动画效果: 缩放(scale)、位移(translation)、旋转(rotation)、透明(alpha) 缩放动画: ScaleAnimation(float fromX, float toX, float fromY, float toY, floa...
分类:其他好文   时间:2015-04-02 18:50:04    阅读次数:152
unity, 让主角头顶朝向等于地面法线(character align to surface normal)
计算过程如下:1,通过由主角中心raycast一条竖直射线获得主角所在处地面法线,用作主角的newUp。2,根据主角forward和newUp计算newForward。3,使用Quaternion.LookRotation (newForward, newUp)获得主角新的rotation。结果如图...
分类:编程语言   时间:2015-03-31 14:18:34    阅读次数:194
[Unity实战]判断角色面朝一定区域是否存在物体
首先是被雨松大大唤醒的数学知识,代码参考自这里: using UnityEngine; using System.Collections; public class TestRot : MonoBehaviour { public Transform target; void Start() { //四元数rotation的一些运算 ...
分类:编程语言   时间:2015-03-29 18:08:56    阅读次数:363
Cocos2d-x结构学习(十八)Timeline、BoneData、SlotData、Skin、Animation
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
unity3d prefab
用prefab创建的实例,其position/rotation/scale并不会随prefab的position/rotation/scale修改而更新,其它属性才会。不过如果prefab的某个实例a,通过Apply修改了prefab的position/rotation/scale,则此实例a的po...
分类:编程语言   时间:2015-03-21 21:09:02    阅读次数:152
305条   上一页 1 ... 23 24 25 26 27 ... 31 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!