今天要说的主要内容是,PhysX和OpenGL中的坐标转换。声明一下有时候我会创建一些之后要用的变量,有可能一开始会看不懂,但坚持下去
最后你会明白的。
最后的结果将是屏幕中出现一个PhysX坐标系的坐标轴。在这过程中我们将会使用到Plane...
分类:
其他好文 时间:
2014-10-21 19:46:58
阅读次数:
402
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.c++版本:/** * Definition for a poi....
分类:
其他好文 时间:
2014-10-19 22:42:21
阅读次数:
225
Number Steps
Time Limit: 1000ms Memory limit: 10000K 有疑问?点这里^_^
题目描述
Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the...
分类:
其他好文 时间:
2014-10-19 21:29:03
阅读次数:
183
在游戏中经常会需要用到寻路,Asset Store里面有很多相关插件。这里介绍U3D自带的Navmesh。1.地形首先新建一个Plane当地表。然后在Plane上随意摆放些几何物体当作障碍物(注意预留能够让角色通过的路径)并给这些障碍物添加rigidbody。将这些障碍物同地表打组(把障碍物拖到Pl...
分类:
编程语言 时间:
2014-10-16 13:07:12
阅读次数:
297
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.Brute Force的做法,N个点两两可以构成N(N-1)/2条线,我们可以找这N(N-1)/2条线...
分类:
其他好文 时间:
2014-10-10 10:39:54
阅读次数:
167
紧接上一个的项目,使用NGUI在Plane下创建Button
选中Hierarchy窗口中Plane,选择菜单NGUI->Open->Widget Wizard,打开Widget Tool窗口
在Widget Tool窗口选择先前制作的Atlas,在Template中选择Button,在Background选择按钮背景图,Add To选择Plane,按钮就会出现了。
...
分类:
其他好文 时间:
2014-10-09 17:33:07
阅读次数:
286
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line. 1 #include 2 #include 3 #include 4 #include 5 #i...
分类:
其他好文 时间:
2014-10-07 16:09:53
阅读次数:
188
详细讲解如何从View Matrix和Projection Matrix获取View Frustum的6个平面方程。...
分类:
其他好文 时间:
2014-09-30 14:07:09
阅读次数:
146
Sawtooth
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 979 Accepted Submission(s): 375
Problem Description
Think about a plane...
分类:
其他好文 时间:
2014-09-29 16:11:41
阅读次数:
239
DescriptionCraig is fond of planes. Making photographs of planes forms a major part of his daily life. Since he tries to stimulate his social life, an...
分类:
其他好文 时间:
2014-09-28 22:46:45
阅读次数:
193