/
CollideableMeshBullet.h
38 lines (29 loc) · 994 Bytes
/
CollideableMeshBullet.h
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
//
// CollideableMeshBullet.h
// Core3D
//
// Created by CoreCode on 10.07.09.
// Copyright 2009 - 2012 CoreCode. Licensed under the MIT License, see LICENSE.txt
//
#include "btBulletCollisionCommon.h"
#include "btShapeHull.h"
#include "btConvexCast.h"
#include "btGImpactShape.h"
#import "CollideableMesh.h"
@interface CollideableMeshBullet : Mesh <Collideable>
{
btCollisionObject *collisionObject;
struct octree_struct *octree_collision;
btCollisionShape *currentShape;
btTriangleIndexVertexArray *meshInterface;
NSMutableDictionary *collisionAlgorithms;
}
- (void)setCollisionShapeSphere:(vector3f)extent atPosition:(vector3f)_position;
- (void)setCollisionShapeFittingSphere;
- (void)setCollisionShapeSphere:(vector3f)extent;
- (void)setCollisionShapeBox:(vector3f)extent;
- (void)setCollisionShapeConvexHull:(BOOL)simplify;
- (void)setCollisionShapeTriangleMesh:(BOOL)gimpact;
- (void)resetState;
@property (nonatomic, readonly) btCollisionObject *collisionObject;
@end