Sha256: 29cc37c0162ecfb60f621ac7f87ca56be8c2898af330463e57d76d407c71edf8

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

//
//  B2DShape.h
//  Box2D
//
//  Created by Juan Jose Karam on 3/6/13.
//  Copyright (c) 2013 Joybox. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "B2DShapeTypes.h"

@class B2DTransform;
@class B2DRayCastOutput;
@class B2DRayCastInput;
@class B2DAABB;
@class B2DMassData;

@interface B2DShape : NSObject {
  b2Shape* shape;
  bool isTransientEntity;
}

@property (nonatomic, assign) b2Shape* shape;
@property (nonatomic, assign, readonly) B2DShapeTypes type;
@property (nonatomic, assign, readonly) NSInteger childCount;
@property (nonatomic, assign, readonly) CGFloat radius;

- (id)initWithShape:(b2Shape*)boxShape;

- (bool)testPointWithTransform:(B2DTransform *)transform andPoint:(CGPoint)point;
- (bool)rayCastWithOutput:(B2DRayCastOutput *)output
                    input:(B2DRayCastInput *)input
                transform:(B2DTransform *)transform
                 andChildren:(NSInteger)childIndex;
- (void)computeAABB:(B2DAABB *)aabb withTransform:(B2DTransform *)transform andChildIndex:(NSInteger)childIndex;
- (void)computeMass:(B2DMassData *)massData withDensity:(CGFloat)density;

@end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 vendor/vendor-ios/box_2d/box_2d_include/B2DShape.h
joybox-1.1.1 vendor/vendor-osx/box_2d/box_2d_include/B2DShape.h
joybox-1.1.0 vendor/vendor-ios/box_2d/box_2d_include/B2DShape.h
joybox-1.1.0 vendor/vendor-osx/box_2d/box_2d_include/B2DShape.h