Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
http://en.wikipedia.org/wiki/Natural_User_Interface
http://plaza.rakuten.co.jp/higepower/diary/200801190000/
http://www.au.kddi.com/seihin/ichiran/smartphone/is12t/
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
FC

•
    –

•
•
    –
- (void)update {

    CGFloat x = self.hero.center.x;
    CGFloat y = self.hero.center.y;

    //
    CGFloat tvx = (self.hero.center.x - self.hero.lastPosition.x);
    CGFloat tvy = (self.hero.center.y - self.hero.lastPosition.y) + 9.8 * 0.08;

    //
    CGPoint newCenter = self.hero.center;
    newCenter.x += tvx;
    newCenter.y += tvy;
    [self.hero setCenter:newCenter];

    CGPoint lastPosition = self.hero.lastPosition;
    lastPosition.x = x;
    lastPosition.y = y;
    [self.hero setLastPosition:lastPosition];
}
- (void)update {

    CGFloat x = self.hero.center.x;
    CGFloat y = self.hero.center.y;

    //
    CGFloat tvx = (self.hero.center.x - self.hero.lastPosition.x);
    CGFloat tvy = (self.hero.center.y - self.hero.lastPosition.y) + 9.8 * 0.08;

    //
    CGPoint newCenter = self.hero.center;
    newCenter.x += tvx;
    newCenter.y += tvy;
    [self.hero setCenter:newCenter];

    CGPoint lastPosition = self.hero.lastPosition;
    lastPosition.x = x;
    lastPosition.y = y;
    [self.hero setLastPosition:lastPosition];
}
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
•
    –
    –
    –
        •
•
•
    –
•
    –
•


•
    –
- (void)postClickEvent:(CGEventType)type button:(CGMouseButton)button
        pos:(CGPoint)pos clickState:(int)clickState {

    self.currentPosition = pos;
    //
    CGEventSourceRef source = CGEventSourceCreate
(kCGEventSourceStateCombinedSessionState);
    //                             /             /
     CGEventRef event = CGEventCreateMouseEvent(source, type, pos, button);
    //
     CGEventSetIntegerValueField(event, kCGMouseEventClickState, clickState);
    //
     CGEventPost(kCGSessionEventTap, event);
    //
     CFRelease(event);
     CFRelease(source);
}

                                                                              49
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-
Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-

More Related Content

PDF
10CSL67 CG LAB PROGRAM 7
PPT
Working with Callbacks
PDF
10CSL67 CG LAB PROGRAM 8
PDF
The Ring programming language version 1.7 book - Part 59 of 196
PDF
Mpesa_C# (2)
PDF
The Ring programming language version 1.6 book - Part 57 of 189
PDF
The Ring programming language version 1.5.2 book - Part 54 of 181
PDF
The Ring programming language version 1.8 book - Part 61 of 202
10CSL67 CG LAB PROGRAM 7
Working with Callbacks
10CSL67 CG LAB PROGRAM 8
The Ring programming language version 1.7 book - Part 59 of 196
Mpesa_C# (2)
The Ring programming language version 1.6 book - Part 57 of 189
The Ring programming language version 1.5.2 book - Part 54 of 181
The Ring programming language version 1.8 book - Part 61 of 202

Similar to Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI- (20)

KEY
cocos2d 事例編 HungryMasterの実装から
PDF
在iOS平台上用Cocos2D做开发 | iOS独立开发者 秦春林
PDF
Creating physics game in 1 hour
KEY
iPhone/iPad开发讲座 第五讲 定制视图和多点触摸
PDF
cocos2d for i Phoneの紹介
KEY
Cocos2d実践編 1.0.0rc
PDF
Basics cocos2d
PDF
Get Into Sprite Kit
KEY
cocos2d入門
PDF
openFrameworks – パーティクルを動かす、静的配列と動的配列 - 多摩美メディアアートII
PDF
Shootting Game
PDF
Of class2
PDF
Cocos2d programming
PDF
Demo creating-physics-game.
PPTX
Game development via_sprite_kit
PDF
Cocos2d 소개 - Korea Linux Forum 2014
PPTX
Game development with Cocos2d
KEY
Chipmunk physics presentation
PPTX
Iphone game developement - In a game things always move
PDF
Desenvolvimento com iOS no LinguÁgil 2012
cocos2d 事例編 HungryMasterの実装から
在iOS平台上用Cocos2D做开发 | iOS独立开发者 秦春林
Creating physics game in 1 hour
iPhone/iPad开发讲座 第五讲 定制视图和多点触摸
cocos2d for i Phoneの紹介
Cocos2d実践編 1.0.0rc
Basics cocos2d
Get Into Sprite Kit
cocos2d入門
openFrameworks – パーティクルを動かす、静的配列と動的配列 - 多摩美メディアアートII
Shootting Game
Of class2
Cocos2d programming
Demo creating-physics-game.
Game development via_sprite_kit
Cocos2d 소개 - Korea Linux Forum 2014
Game development with Cocos2d
Chipmunk physics presentation
Iphone game developement - In a game things always move
Desenvolvimento com iOS no LinguÁgil 2012
Ad

Recently uploaded (20)

PDF
3 Best IPTV Reseller Programs Providers (2025)
PPTX
AEN 302 - Brinjal, Bhendi, Tomato Pests - PPT 1 - Agri Junction.pptx.pptx
PPTX
G.A.M.E. O.N.! (General — Art — Mythology — Entertainment — Obscure Naata) [2...
PDF
D009 - Lahoo Ke Pyaase. its a hindi comics
PPTX
Peribott dynamic LLP In Hyderabad, Telangana, India
PDF
Module-3-Week005-to-Week006-PPT.pdf hahahgs
DOCX
When Smiles Disappear: Helping Children Break Through Social Barriers
PDF
mnbnyuynhncf ytdnbvdfghdfhghdhdfhdghdghdghghgfhfh
PDF
Call glamorous Delhi girls and enjoy elite vibes
PPTX
Cloud Computing ppt[1].pptxkuti7t888tt8iug
PPTX
SWweredddddaregqrgWWEQEwqdewf final.pptx
PPTX
Introduction to NGO’s098765789709876.pptx
PPTX
GILGIT BALTISTAN HISTORY ,ADMINISTRATIVE , CONSTITUTUINAL STATUS , GEOGRAPMY ...
PPTX
Social Awareness on Municipal Solid Waste.pptx
PDF
Fortnite: Eminem Battles Robot Slim Shady
PPTX
Picture Perception - a constructive narrative
PPTX
1- write money using decsscscscimals.pptx
PPTX
Mariah Morgenstern - Journey in Film & Music.pptx
PPTX
Health_System_in_India_Oasrganization_BSc_Nursing.pptx
PPTX
very useful for every thing in this area
3 Best IPTV Reseller Programs Providers (2025)
AEN 302 - Brinjal, Bhendi, Tomato Pests - PPT 1 - Agri Junction.pptx.pptx
G.A.M.E. O.N.! (General — Art — Mythology — Entertainment — Obscure Naata) [2...
D009 - Lahoo Ke Pyaase. its a hindi comics
Peribott dynamic LLP In Hyderabad, Telangana, India
Module-3-Week005-to-Week006-PPT.pdf hahahgs
When Smiles Disappear: Helping Children Break Through Social Barriers
mnbnyuynhncf ytdnbvdfghdfhghdhdfhdghdghdghghgfhfh
Call glamorous Delhi girls and enjoy elite vibes
Cloud Computing ppt[1].pptxkuti7t888tt8iug
SWweredddddaregqrgWWEQEwqdewf final.pptx
Introduction to NGO’s098765789709876.pptx
GILGIT BALTISTAN HISTORY ,ADMINISTRATIVE , CONSTITUTUINAL STATUS , GEOGRAPMY ...
Social Awareness on Municipal Solid Waste.pptx
Fortnite: Eminem Battles Robot Slim Shady
Picture Perception - a constructive narrative
1- write money using decsscscscimals.pptx
Mariah Morgenstern - Journey in Film & Music.pptx
Health_System_in_India_Oasrganization_BSc_Nursing.pptx
very useful for every thing in this area
Ad

Kinect勉強会 Vol.3 -ぼくのかんがえた最強のNUI-

  • 34. FC • – • • –
  • 35. - (void)update { CGFloat x = self.hero.center.x; CGFloat y = self.hero.center.y; // CGFloat tvx = (self.hero.center.x - self.hero.lastPosition.x); CGFloat tvy = (self.hero.center.y - self.hero.lastPosition.y) + 9.8 * 0.08; // CGPoint newCenter = self.hero.center; newCenter.x += tvx; newCenter.y += tvy; [self.hero setCenter:newCenter]; CGPoint lastPosition = self.hero.lastPosition; lastPosition.x = x; lastPosition.y = y; [self.hero setLastPosition:lastPosition]; }
  • 36. - (void)update { CGFloat x = self.hero.center.x; CGFloat y = self.hero.center.y; // CGFloat tvx = (self.hero.center.x - self.hero.lastPosition.x); CGFloat tvy = (self.hero.center.y - self.hero.lastPosition.y) + 9.8 * 0.08; // CGPoint newCenter = self.hero.center; newCenter.x += tvx; newCenter.y += tvy; [self.hero setCenter:newCenter]; CGPoint lastPosition = self.hero.lastPosition; lastPosition.x = x; lastPosition.y = y; [self.hero setLastPosition:lastPosition]; }
  • 38. – – – •
  • 39. • •
  • 40. – • • –
  • 41. - (void)postClickEvent:(CGEventType)type button:(CGMouseButton)button pos:(CGPoint)pos clickState:(int)clickState { self.currentPosition = pos; // CGEventSourceRef source = CGEventSourceCreate (kCGEventSourceStateCombinedSessionState); // / / CGEventRef event = CGEventCreateMouseEvent(source, type, pos, button); // CGEventSetIntegerValueField(event, kCGMouseEventClickState, clickState); // CGEventPost(kCGSessionEventTap, event); // CFRelease(event); CFRelease(source); } 49