码迷,mamicode.com
首页 >  
搜索关键字:plane    ( 685个结果)
从零开始Unity3D游戏开发【2 简单的水管工例子】
1.首先,创建一个新的Project。2.hierarchy(层)窗体下的Create下添加一个plane(平面)3.调整Main Camera的视角,让panel显示在Game窗体。这一步比较困难,如果没有3维建模基础,确实不好整。但是没关系,别忘记了我们有快捷键。 在Scence(场景)里面调整...
分类:编程语言   时间:2014-11-16 20:00:17    阅读次数:409
unity3d设置3D模型显示在2D背景之前(多个相机分层显示)(转)
解决步骤:1.添加一个摄像机,命名为BackgroundCamera,然后在Layer添加一个background层。并且将plane拖放到改相机节点下。 然后将BackgroundCamera和Plane都置于background层,修改ClearFlags未Depthonly深度渲染,并且设置 ...
分类:编程语言   时间:2014-11-13 12:48:32    阅读次数:209
LeetCode:Max Points on a Line
题目描述: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 解题思路:暴力求解。以每个点为中心,然后遍历剩余的点。对每个点,初始化一个map,以pair为key(dx,dy为两点之间x坐标与y坐标的差除以他们的最大公约数之后得到...
分类:其他好文   时间:2014-11-10 12:07:20    阅读次数:152
UVA - 10574 Counting Rectangles
DescriptionProblem HCounting RectanglesInput: Standard InputOutput:Standard Output Time Limit: 3SecondsGiven n points on the XY plane, count how many ...
分类:其他好文   时间:2014-11-08 16:32:29    阅读次数:173
Max Points on a Line(6)
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.如何判断点在同一条直线上呢?可以这么办。设定一个初始起点,计算剩余点到起始点直线的斜率,如果存在斜率相...
分类:其他好文   时间:2014-11-07 20:32:32    阅读次数:206
Unity获取鼠标点击位置,物体朝鼠标点击处移动
大型游戏中经常会有这种场景,点击屏幕位置,人物就会朝着鼠标点击位置移动,下面我们就来实现这种效果。首先,我们在场景中添加一个Plane,并且设置它的tag为Plane,然后,在Plane上面添加一个Cube,设置好位置,刚好放置在Plane上面,最后,给cube添加一个脚本,脚本内容如下:using...
分类:移动开发   时间:2014-11-03 12:59:11    阅读次数:238
B - Plane of Tanks: Pro
DescriptionVasya has been playing Plane of Tanks with his friends the whole year. Now it is time to divide the participants into several categories de...
分类:其他好文   时间:2014-11-01 13:09:05    阅读次数:258
poj 2836 Rectangular Covering(状压DP)
Rectangular Covering Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 1716   Accepted: 468 Description n points are given on the Cartesian plane. Now you have...
分类:其他好文   时间:2014-10-26 10:24:28    阅读次数:109
vtkElevationFilter
vtkElevationFilter——高程属性过滤器,一个通过数据集DataSet产生标量值的过滤器,用户可以指定标量值范围。具体过程是,由用户设置一条线,将数据集里的所有点投影到这条线上,根据投影结果确定每个点的属性数据。vtkPlaneSource *plane=vtkPlaneSource:...
分类:其他好文   时间:2014-10-24 00:14:37    阅读次数:158
Programming Assignment 3: Collinear Points
The problem. Given a set of N distinct points in the plane, draw every (maximal) line segment that connects a subset of 4 or more of the points.Point ...
分类:其他好文   时间:2014-10-21 22:54:39    阅读次数:564
共685条   上一页 1 ... 59 60 61 62 63 ... 69 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!