john146 / imsimreal

Objective-C Physics package for games and simulations on Macintosh and iPhone

This URL has Read+Write access

imsimreal / IMSRGravity.m
100644 34 lines (25 sloc) 0.443 kb
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
//
// IMSRGravity.m
// imSimReal
//
// Created by John Ahrens on 12/21/08.
// Copyright 2008 John Ahrens, LLC. All rights reserved.
//
 
#import "IMSRGravity.h"
 
@implementation IMSRGravity
 
@synthesize bodyGravity;
 
- (id)init
{
if (![super init])
{
return nil;
}
 
bodyGravity = [[NSDictionary alloc] initWithContentsOfFile: @"Gravity.plist"];
 
return self;
}
 
- (void)dealloc
{
[bodyGravity release];
 
[super dealloc];
}
@end