摘要:
方案一:speed public var simulateAccelerometer:boolean = false; var speed = 10.0; function Update () { var dir : Vector3 = Vector3.zero; if (simulateAccel 阅读全文
摘要:
function Rotate (eulerAngles : Vector3, relativeTo : Space = Space.Self) : void Description描述 Applies a rotation of eulerAngles.z degrees around the z 阅读全文
摘要:
LineRenderer线渲染器主要是用于在3D中渲染线段,虽然我们也可以使用GL图像库来渲染线段,但是使用LineRenderer我们可以对线段进行更多的操作,例如:设置颜色,宽度等。在这里要注意LineRenderer渲染出的线段的两个端点是3D世界中的点,即他是属于世界坐标(World Poi 阅读全文
摘要:
由于我们Unity3D是跨平台工作的,所以尽量用Unity3d的api,查了下Unity3的documetation,只有个Microphone可以用。 static AudioClip Start(string deviceName, bool loop, int lengthSec, int f 阅读全文