Initialize libbullet git in 2.0_beta.
[platform/upstream/libbullet.git] / Extras / PhysicsEffects / sample / api_physics_effects / 4_motion_type / physics_func.h
1 /*\r
2 Physics Effects Copyright(C) 2010 Sony Computer Entertainment Inc.\r
3 All rights reserved.\r
4 \r
5 Physics Effects is open software; you can redistribute it and/or\r
6 modify it under the terms of the BSD License.\r
7 \r
8 Physics Effects is distributed in the hope that it will be useful,\r
9 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
11 See the BSD License for more details.\r
12 \r
13 A copy of the BSD License is distributed with\r
14 Physics Effects under the filename: physics_effects_license.txt\r
15 */\r
16 \r
17 #ifndef __PHYSICS_FUNC_H__\r
18 #define __PHYSICS_FUNC_H__\r
19 \r
20 #define SCE_PFX_USE_PERFCOUNTER\r
21 \r
22 #include "physics_effects.h"\r
23 \r
24 using namespace sce::PhysicsEffects;\r
25 \r
26 //E Simulation\r
27 //J シミュレーション\r
28 bool physics_init();\r
29 void physics_release();\r
30 void physics_create_scene(int sceneId);\r
31 void physics_simulate();\r
32 \r
33 //E Picking\r
34 //J ピッキング\r
35 PfxVector3 physics_pick_start(const PfxVector3 &p1,const PfxVector3 &p2);\r
36 void physics_pick_update(const PfxVector3 &p);\r
37 void physics_pick_end();\r
38 \r
39 //E Change parameters\r
40 //J パラメータの取得\r
41 int physics_get_num_rigidbodies();\r
42 const PfxRigidState& physics_get_state(int id);\r
43 const PfxRigidBody& physics_get_body(int id);\r
44 const PfxCollidable& physics_get_collidable(int id);\r
45 \r
46 // Get contact information\r
47 int physics_get_num_contacts();\r
48 const PfxContactManifold &physics_get_contact(int id);\r
49 \r
50 // Get simulation island\r
51 const PfxIsland* physics_get_islands();\r
52 \r
53 #endif /* __PHYSICS_FUNC_H__ */\r