2 Physics Effects Copyright(C) 2010 Sony Computer Entertainment Inc.
\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
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
13 A copy of the BSD License is distributed with
\r
14 Physics Effects under the filename: physics_effects_license.txt
\r
17 #ifndef __PHYSICS_FUNC_H__
\r
18 #define __PHYSICS_FUNC_H__
\r
20 #define SCE_PFX_USE_PERFCOUNTER
\r
22 #include "physics_effects.h"
\r
24 using namespace sce::PhysicsEffects;
\r
28 bool physics_init();
\r
29 void physics_release();
\r
30 void physics_create_scene(int sceneId);
\r
31 void physics_simulate();
\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
39 //E Change parameters
\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
46 int physics_get_num_contacts();
\r
47 const PfxContactManifold &physics_get_contact(int id);
\r
49 #endif /* __PHYSICS_FUNC_H__ */
\r