Transform.RotateAround
2015-05-04 15:25
417 查看
方法参数如下:
public void RotateAround(Vector3 point, Vector3 axis, float angle);
point:旋转轴中某个点;
axis:旋转轴向量;
angle:角速度
样例:
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Update() {
transform.RotateAround(Vector3.zero, Vector3.up, 20 * Time.deltaTime);
}
}
public void RotateAround(Vector3 point, Vector3 axis, float angle);
point:旋转轴中某个点;
axis:旋转轴向量;
angle:角速度
样例:
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Update() {
transform.RotateAround(Vector3.zero, Vector3.up, 20 * Time.deltaTime);
}
}
相关文章推荐
- transform.RotateAround改变的是rotate属性和position属性
- 如何围绕某一轴(不是xyz)旋转——transform.RotateAround
- Transform.RotateAround
- 拒绝IE8-,CSS3 transform rotate旋转动画效果(支持IE9+/chrome/firefox)
- Silverlight & Blend动画设计系列二:旋转动画(RotateTransform)
- Silverlight实用窍门系列:53.Silverlight中的5种基本变换RotateTransform、ScaleTransform、SkewTransform、TranslateTransform、TransformGroup
- Transform(CTM,Translate,Rotate,Scale)
- silverlight 中 物件儿的位置变换 TransformGroup,RotateTransform 和 ScaleTransform 用C#
- Unity 控制物体绕自身的x,y,z 轴旋转,transform.Rotate()
- CSS3属性transform详解之(旋转:rotate,缩放:scale,倾斜:skew,移动:translate)
- Windows Phone 7 旋转动画(RotateTransform)
- Silverlight实用窍门系列:53.Silverlight中的5种基本变换RotateTransform、ScaleTransform……
- CSS3 transform:rotate(deg) 2D旋转效果
- Js新手问题: transform: rotate(N deg) 每次只旋转一次的问题
- 关于ElementTransformUtils.RotateElement方法的顺时针/逆时针旋转
- CameraRotateAroundTarget
- CSS动画:Transform中使用频繁的scale,rotate,translate动画
- Windows Phone 7 旋转动画(RotateTransform)
- HTML5基础加强css样式篇(css属性transform 函数(2D)的scale(),transform-origin,skew(),translate(),rotate() )(二十四)
- JS利用CSS3 transform rotate 实现旋转转盘或背景(大转盘抽奖)