cube Creates a cube at the origin of the coordinate system. When center is true the cube will be centered on the origin, otherwise it is created in the first octant. The argument names are optional...
分类:
编程语言 时间:
2015-02-11 14:48:33
阅读次数:
460
把这个脚本挂在一个cube上,然后把另一个cube拖到target上,把这两个物体之间有一段距离,然后运行,就看到效果了~using UnityEngine;
using System.Collections;
public class ProjectileTest : MonoBehaviour
{
public GameObject target;
public float ...
分类:
编程语言 时间:
2015-02-09 11:05:18
阅读次数:
244
??
(define(cube x) (* x x x))
(define(p x) (- (* 3 x) (* 4 (cube x))))
(define(sine angle)
(if (not (> (abs angle) 0.1))
angle
(p (sine (/ angle 3.0)))))
大家...
分类:
其他好文 时间:
2015-02-05 18:35:07
阅读次数:
215
练习1.15(define (cube x) (* x x x))(define (p x) (- (* 3 x) (* 4 (cube x))))(define (sine angle) (if (not (> (abs angle) 0.1)) angle (p (sine (/ angle 3...
分类:
其他好文 时间:
2015-02-05 17:57:49
阅读次数:
140
Unity脚本说明 Unity支持语言: C#(主流),JavaScript,Boo 创建脚本: 【Assets-Create-C# Script】 学习案例 布置场景: 添加一个Plane,3个Cube,一个Directional li...
分类:
编程语言 时间:
2015-02-02 17:34:19
阅读次数:
281
快速对齐摄像机 【选择摄像机-GameObject-Align With View】 Game模板中显示的界面,就是摄像机拍摄后的画面 本次学习案例 添加一个地形,一个点光源,三个Cube 了解摄像机的几个常用属性 选中摄像机,然后在Inspect...
分类:
编程语言 时间:
2015-02-02 00:32:10
阅读次数:
356
在看下面操作时,先记住三句话 1.游戏对象 是由 组件 组成的:衣服 2.材质(Material):就是衣服的设计方案 3.纹理(Texture):做衣服的布料 从GameObject到Cube 第一步:创建一个空的游戏对象 第二步: 添加网格过滤器,同时...
分类:
编程语言 时间:
2015-02-01 23:03:33
阅读次数:
419
What is Three.js?Let's try to describe it briefly:Three.js is a library that makes WebGL - 3D in the browser - easy to use. While a simple cube in raw...
分类:
Web程序 时间:
2015-02-01 21:47:19
阅读次数:
249
题目描述
初始有很多立方体,有两种操作:
M X Y 将X所在的堆放到Y所在的堆上面
C X 查询X下方有几个块
Sample Input
6
M 1 6
C 1
M 2 4
M 2 6
C 3
C 4
Sample Output
1
0
2
解题思路
这是一道经典的带权并查集问题,用cnt和dis数组...
分类:
其他好文 时间:
2015-01-31 16:19:38
阅读次数:
158
BoxGeometry用来在三维空间内创建一个立方体盒子对象.
用法: var geometry = new THREE.BoxGeometry(1,1,1);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var cube = new THREE.Mesh(geometry,material);
scene.add(cube);
BoxGeometry
<p...
分类:
Web程序 时间:
2015-01-26 15:11:12
阅读次数:
193