Sha256: 50f2f6bd048397c176f37daefb4309149cc6ea15da5cb4da7ac026fafcf076d8

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

//
//  CBBody.h
//  CBBox2D
//
//  Created by Juan Jose Karam on 2/17/13.
//  Copyright (c) 2013 CurveBeryl. All rights reserved.
//
//  Inspired by:
//
//  Thanks to Axcho for his beautiful Cocos2D-Box2D implementation
//  CCBox2D (https://github.com/axcho/CCBox2D)


#import <Foundation/Foundation.h>

@class B2DShape;

@interface B2DBody : NSObject

@property (nonatomic, assign) b2Body *body;
@property (nonatomic, readonly, getter = position) CGPoint position;
@property (nonatomic, readonly, getter = angle) CGFloat angle;
@property (nonatomic, readonly, getter = center) CGPoint center;
@property (nonatomic, getter = isSleepingAllowed, setter = setSleepingAllowed:) BOOL isSleepingAllowed;


- (id)initWithBody:(b2Body *)boxBody;

- (void)addFixureForShape:(B2DShape *)shape
                 friction:(CGFloat)friction
              restitution:(CGFloat)restitution
                  density:(CGFloat)density
                 isSensor:(BOOL)isSensor;

- (void)applyForce:(CGPoint)force
        atLocation:(CGPoint)location
         asImpulse:(BOOL)asImpulse;


- (void)applyTorque:(CGFloat)torque
          asImpulse:(BOOL)impulse;

@end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joybox-0.0.5 vendor/Box2D.framework/Versions/A/Headers/Dynamics/B2DBody.h
joybox-0.0.4 vendor/Box2D.framework/Versions/A/Headers/Dynamics/B2DBody.h
joybox-0.0.3 vendor/Box2D.framework/Versions/A/Headers/Dynamics/B2DBody.h