资源简介
unity 横版2D车辆控制源码 2D Vehicle Control 车辆控制装置 车辆控制系统 unity5以上可用

代码片段和文件信息
using UnityEngine;
using System.Collections;
public class CameraControl : MonoBehaviour {
public float dampTime = 0.3f; // Offset of the camera to follow the target.
public Vector3 offset = Vector3.zero; // Offset of the position of the camera to the target.
private Vector3 velocity = Vector3.zero; //Velocity of the smooth damp function.
public Transform target; // The object that camera have to follow.
// Update is called once per frame
void FixedUpdate () {
// Verify if the target is not null
if(target) {
Vector3 point = GetComponent().WorldToViewportPoint(target.position);
Vector3 delta = target.position - GetComponent().ViewportToWorldPoint(new Vector3(0.5f 0.5f point.z));
// Set the destination of the camera with the offset.
Vector3 destination = transform.position + delta - offset;
// Set the position of the camera smooth to the target position.
transform.position = Vector3.SmoothDamp(transform.position destination ref velocity dampTime);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\
文件 763911 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\2D Vehicle Control Tutorial.pdf
文件 157155 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\2D Vehicle Controller v1.2.0.JPG
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Audio\
文件 58920 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Audio\loop_1_0.wav
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\
文件 10534 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\Gray_Car.prefab
文件 223 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\HardSurface.physicsMaterial2D
文件 13234 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\LandBlock.prefab
文件 9601 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\PoliceCar.prefab
文件 9773 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\RedCar.prefab
文件 10112 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Prefabs\Speedometer.prefab
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Scenes\
文件 668272 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Scenes\Main.unity
文件 636271 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Scenes\mobileExample.unity
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
文件 1029 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
文件 2133 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
文件 3384 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
文件 5623 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
文件 11884 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\sc
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\
文件 7916 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\Blue_Car_Sprite.png
文件 7822 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\Gray_Car_Sprite.png
文件 7634 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\KMH_Speed_Panel.png
目录 0 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\Land\
文件 1561 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\Land\boxAlt.png
文件 3435 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\Land\bridge.png
文件 1486 2017-07-04 02:42 unity 横版2D车辆控制源码\2D Vehicle Controller v1.2.0 (Exported)\Sprites\Land\fence.png
............此处省略15个文件信息
- 上一篇:Qt实验报告和源代码
- 下一篇:最优化原理和方法.pdf
相关资源
- Unity3D登录界面工程
- 汽车租赁系统............................
- unity3d反编译工具
- A*算法的2D演示(带源码)
- 自动变速器故障警告灯维修案例
-
UnityWebPla
yer及UnityWebPla yerFull -
UnityWebPla
yerFull - Scratch 我的世界.2d.sb3
- Scratch:(我的世界2D).sb3
- 汽车租赁网站(毕业设计源代码)
- labview汽车仪表盘
- unity4.0官方正式版
- 西门子ProCenter多媒体呼叫中心解决方
- S32K144仿真软件S32DS操作指南
- STM32F042F6P6 Uart12DMA;发送中断接收
- 基于AUTOSAR的汽车故障诊断系统的设计
- cocos2d-x飞机大战项目
- 电动汽车充电服务管理系统
- 电动汽车用感应电机反馈耗散哈密顿
- IBM成功帮助福特汽车公司实施电子商
- 基于MC68HC908RF2的汽车胎压监测系统的
- 由AT91M55800A和MC68HC908RF2构成的TPMS
- Behavior Designer 1.6.3(u2018.3.0).unitypa
- HP ProCurve-SR-7102dl产品手册
- Unity纪念碑谷.rar
- A Pathfinding Project Pro v4.2.2.rar
- Unity 声音播放插件,支持将字符串转
- 血小板live2d模型
- Gaia 1.7.2
- 特定人语音识别技术在汽车控制上的
评论
共有 条评论