Logo Search packages:      
Sourcecode: blender version File versions


Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/

This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, 
including commercial applications, and to alter it and redistribute it freely, 
subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.


class PHY_ResponseTable;

class PHY_Shape;

struct      PHY__Vector3
      float m_vec[4];
      operator const float* () const 
            return &m_vec[0];
      operator float* () 
            return &m_vec[0];
//typedef   float PHY__Vector3[4];

typedef enum
      PHY_SENSOR_RESPONSE,          /* Touch Sensors */
      PHY_CAMERA_RESPONSE,    /* Visibility Culling */
      PHY_OBJECT_RESPONSE,    /* Object Dynamic Geometry Response */
      PHY_STATIC_RESPONSE,    /* Static Geometry Response */

      typedef struct PHY_CollData {
            PHY__Vector3 m_point1;               /* Point in object1 in world coordinates */ 
            PHY__Vector3 m_point2;               /* Point in object2 in world coordinates */
            PHY__Vector3 m_normal;               /* point2 - point1 */ 
      } PHY_CollData;

      typedef bool (*PHY_ResponseCallback)(void *client_data,
                                                               void *client_object1,
                                                               void *client_object2,
                                                               const PHY_CollData *coll_data);

/// PHY_PhysicsType enumerates all possible Physics Entities.
/// It is mainly used to create/add Physics Objects

typedef enum PHY_PhysicsType {
      PHY_CONVEX_FIXEDBODY=16388,//'collision object'
} PHY_PhysicsType;

/// PHY_ConstraintType enumerates all supported Constraint Types
typedef enum PHY_ConstraintType {
      PHY_ANGULAR_CONSTRAINT = 3,//hinge without ball socket
      PHY_VEHICLE_CONSTRAINT=11,//complex 'constraint' that turns a rigidbody into a vehicle

} PHY_ConstraintType;

typedef float     PHY_Vector3[3];


Generated by  Doxygen 1.6.0   Back to index