Ignore:
Timestamp:
Jul 8, 2012, 8:26:36 PM (10 years ago)
Author:
touky
Message:

EasyMesh : Fixed normals on disc when one of the radius == 0
EasyPhysics : Added Cone primitive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Physics/EasyPhysics.cpp

    r1597 r1599  
    7272{
    7373        SetShapeTo(new btSphereShape(radius * LOL2BT_UNIT * LOL2BT_SIZE));
     74}
     75
     76void EasyPhysics::SetShapeToCone(float radius, float height)
     77{
     78        SetShapeTo(new btConeShape(     radius * LOL2BT_UNIT,
     79                                                                height * LOL2BT_UNIT));
    7480}
    7581
Note: See TracChangeset for help on using the changeset viewer.