Sha256: 8c452ad8df38f165d3ad04aa2ae41299d5efe4bf0077ccb57e79e057b510b56a
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 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 { b2Body *body; } @property (nonatomic, assign) b2Body *body; @property (nonatomic, getter = position, setter = setPosition:) 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)addFixtureForShape:(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joybox-0.0.6 | vendor/vendor-osx/box_2d/include/B2DBody.h |