-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bullet.m
45 lines (31 loc) · 807 Bytes
/
Bullet.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Bullet.m
//
// Created by : Michael Heirendt
// Project : Crush
// Date : 1/1/16
//
// Copyright (c) 2016 Apportable.
// All rights reserved.
//
// -----------------------------------------------------------------
#import "Bullet.h"
// -----------------------------------------------------------------
@implementation Bullet
// -----------------------------------------------------------------
+ (instancetype)node
{
return [[self alloc] init];
}
- (instancetype)init
{
self = [super init];
NSAssert(self, @"Unable to create class %@", [self class]);
// class initalization goes here
return self;
}
- (void)didLoadFromCCB {
self.physicsBody.collisionType = @"Bullet";
}
// -----------------------------------------------------------------
@end