物体直线运动
来源:互联网 发布:网络机房运维方案 编辑:程序博客网 时间:2024/05/01 12:29
using UnityEngine;
using System.Collections;
public class Phy_1_1 : MonoBehaviour {
// Use this for initialization
public GameObject gameObj;
private int Speed;
void Start () {
gameObj.transform.position = Vector3.zero;
Speed = 10;
}
// Update is called once per frame
void Update ()
{
gameObj.transform.Translate(new Vector3(Speed*Time.deltaTime,0,0));
}
void FixedUpdate()
{
}
}
using System.Collections;
public class Phy_1_1 : MonoBehaviour {
// Use this for initialization
public GameObject gameObj;
private int Speed;
void Start () {
gameObj.transform.position = Vector3.zero;
Speed = 10;
}
// Update is called once per frame
void Update ()
{
gameObj.transform.Translate(new Vector3(Speed*Time.deltaTime,0,0));
}
void FixedUpdate()
{
}
}
0 0
- 物体直线运动
- Unity3D_直线运动
- 8.5.1 直线运动
- 匀加速直线运动
- 物体
- 物体
- (AI-TANK)做匀加速直线运动
- Cocos Creator之向量旋转角度计算绘制直线运动轨迹
- 物体变成其他物体的子物体
- 创建物体
- 物体识别
- 创建物体
- 创建物体
- 物体旋转
- 物体框架
- 物体移动
- 物体移动
- 物体检测
- js颜色拾色器
- 动归——括号匹配
- zoj3777Problem Arrangement(状态dp或者折半搜素)
- Hadoop: NameNode is in safe mode.
- linux 2.6.34.7 内核kernel目录下的文件
- 物体直线运动
- RtlCompareUnicodeString routine
- 一次谷歌面试趣事
- Apache2.4+tomcat7.0 配置反向代理和负载均衡及session集群
- ibatis 打印sql 方法
- 毛玻璃登录界面哈哈哈
- HUE中通过SQL进行数据分析
- HYSBZ/BZOJ 1034 [ZJOI2008] 泡泡堂BNB - 贪心
- 如何在本地环境配置github