SceneKit
SceneKit的开发之路
陈皮话梅糖@
这个作者很懒,什么都没留下…
展开
-
碰撞检测
//// GameViewController.m// 碰撞检测//// Created by 柯木超 on 2019/4/9.// Copyright © 2019年 柯木超. All rights reserved.//#import "GameViewController.h"typedef NS_ENUM(NSUInteger,MaskType) { M...原创 2019-04-09 19:04:18 · 748 阅读 · 0 评论 -
SceneKit-碰撞检测和接触检测详解
1、SCNPhysicsBody要讲解碰撞检测和接触检测之前,首先先了解一个概念:SCNPhysicsBody每一个物体都属于一种类型:staticBody、dynamicBody、kinematicBody(1)staticBody是一个不受外力或碰撞影响的物体,不能移动。比如地板、墙壁等。必须把它附加到SCNNode的physicsBody属性上。附加到节点上后,会自动为节...原创 2019-04-11 16:59:33 · 1368 阅读 · 0 评论 -
SCNGeometry 立体几何的使用
//// GameViewController.m// SCNGeometry几何对象//// Created by 柯木超 on 2019/4/9.// Copyright © 2019年 柯木超. All rights reserved.//#import "GameViewController.h"@implementation GameViewControll...原创 2019-04-09 20:54:56 · 692 阅读 · 0 评论 -
SCNAction 动画
//// GameViewController.m// SCNAction//// Created by 柯木超 on 2019/4/9.// Copyright © 2019年 柯木超. All rights reserved.//#import "GameViewController.h"@implementation GameViewController- ...原创 2019-04-09 20:21:09 · 500 阅读 · 0 评论 -
CSNCamera-照相机
//// GameViewController.m// CSNCamera-照相机//// Created by 柯木超 on 2019/4/9.// Copyright © 2019年 柯木超. All rights reserved.//#import "GameViewController.h"@implementation GameViewController...原创 2019-04-09 18:54:37 · 316 阅读 · 0 评论 -
SCNNode节点的用法详解
//// GameViewController.swift// SCNNode节点的用法详解//// Created by 柯木超 on 2019/4/9.// Copyright © 2019年 柯木超. All rights reserved.//import UIKitimport QuartzCoreimport SceneKitclass GameVie...原创 2019-04-09 17:57:08 · 1782 阅读 · 0 评论 -
1、SCNView、SCNScene的使用
//// GameViewController.swift// SCNView//// Created by 柯木超 on 2019/4/9.// Copyright © 2019年 柯木超. All rights reserved.//import UIKitimport QuartzCoreimport SceneKitclass GameViewContro...原创 2019-04-09 17:13:03 · 1694 阅读 · 0 评论