3d- (ollision detection).
ollision detection , 3D- . Collider, , . , - (Sphere collider), - / , , (mesh), , 3d-. , , , . , , , , , .
ollision detection, Unity3d, C#.
, , (GameObject > Create Other > Cube), .
Transform , Scale, . , , . .
, . () Unity3d c Rotate. , . , .
Game, . Unity3d . Plane () Ground, , (), Wall, Rename , . , Unity3d , .
|
|
, C# Dialog (Project > Create > C# Script).
. , Unity, .
:
. , Unity3d MonoBehaviour. ( Dialog) , . () .
OnCollisionEnter . Log Debug "Hit Something" Unity.
. Dialog. , Inspector ,
, Play, , , , Unity3d (Window > Console) .
, . ( ).
, , Collision, OnCollisionEnter.
:
(Window > Console) , . , Unity3d .
(Project > Create > Prefab). Project New Prefab. UprugostCube.
(Prefabs) , . , . , , ; , .
UprugostCube , Preview.
. , UprugostCube.
|
|
Game , , , , .
, Unity3d C#. Project Destroy MonoDevelop.
, C# Unity , ( ) Start() Update().
Update, .
Start(), Play , , - . Start() Destroy() gameObject, , , :
, , . , .
. Find() GameObject:
, - , Destroy:
, . 2 , . , , - 3D .
. sensitivityX sensitivityY . minimumX, maximumX, minimumY, maximumY . -360 360, , . , -60 60. , 60 . -90 90.
, , . , , , , . transform.rotate, .
, .
Door, , .
, , , . , , , .
, .
.
.
, . , . , . , . , .
|
|
, . . , , .
Unity. , . 3D . , Unity . , , .
. , - , , . , . , .
. . . , .
1. - . ., . ., . . . ., 2008.
2. . Unity 3.x Scripting. Packt Publishing, 2011.
3. . ., . . . 2, 2002.
4. .. - // - . - , 2001.
5. . . Unity3D // - . . 3. : . . , 2012. . 15-17.
6. . . 2002
7. . . . , 2008.
8. .. Unity 3D. . , 2012.
9. .. . , 1, 2005, . 77-83.
10. Goldstone, W. Unity Game Development Essentials. Packt Publishing, 2009. 316 .
11. Creighton, R.-H. Unity 3D Game Development by Example Beginner's Guide. Packt Publishing, 2010. 384 c.
12. Sue Blackman. Beginning 3D Game Development with Unity: All-in-one, Multi-platform Game Development. Apress, 2011. 992 .
|
|
13. http://www.virtulab.net/.
14. . : http://www.rusedu.info
15. . : http://www.moluch.ru