Ignore:
Timestamp:
Aug 17, 2012, 7:41:36 PM (8 years ago)
Author:
touky
Message:

Added Attachment/base logic with working attachment with EasyCharacterController.
Added RayCastResult & a naïve integration for EasyCharacterController.
Enjoy !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Physics/Include/LolBtPhysicsIntegration.h

    r1747 r1768  
    2020namespace lol
    2121{
     22        //Override Gamegroups names for Physic-useage
     23        //"_ENT_" means that this is a group for Entities that use EasyPhysic primitives.
     24        //"_EZP_" means that this is a group for EasyPhysic primitives.
     25#define GAMEGROUP_ENT_PLATFORM          GAMEGROUP_BEFORE
     26#define GAMEGROUP_ENT_MAIN                      GAMEGROUP_DEFAULT
     27#define GAMEGROUP_EZP_CHAR_CTRLR        GAMEGROUP_AFTER
     28#define GAMEGROUP_SIMULATION            GAMEGROUP_AFTER_POST
    2229
    2330#ifdef HAVE_PHYS_USE_BULLET
     
    3239#define BT2LOL_VEC3(ELEMENT)    (*(lol::vec3*)(&(ELEMENT)))
    3340
     41//Same as above with Unit taken into account
     42#define LOL2BTU_VEC3(ELEMENT)   btVector3((ELEMENT).x * LOL2BT_UNIT, (ELEMENT).y * LOL2BT_UNIT, (ELEMENT).z * LOL2BT_UNIT)
     43#define BT2LOLU_VEC3(ELEMENT)   (*(lol::vec3*)(&(ELEMENT))) * BT2LOL_UNIT
     44
    3445#define LOL2BT_QUAT(ELEMENT)    btQuaternion((ELEMENT).x, (ELEMENT).y, (ELEMENT).z, (ELEMENT).w)
    3546#define BT2LOL_QUAT(ELEMENT)    lol::quat((ELEMENT).getW(), BT2LOL_VEC3((ELEMENT).getAxis())
Note: See TracChangeset for help on using the changeset viewer.