Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2019, 11:36:28 AM (5 years ago)
Author:
pomselj
Message:

Worked on Collision, doesn't work yet, compiles tho

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.h

    r12337 r12346  
    4040#include "util/Math.h"
    4141
    42 #include "worldentities/MovableEntity.h"
     42#include "worldentities/pawns/Pawn.h"
    4343#include <bullet/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h>
    4444
     
    5858    @ingroup OrxoBlox
    5959    */
    60     class _OrxoBloxExport OrxoBloxBall : public MovableEntity
     60    class _OrxoBloxExport OrxoBloxBall : public Pawn
    6161    {
    6262        public:
     
    123123
    124124
    125             void Bounce(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint);
    126            
    127             virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;
     125            void Bounce(OrxoBloxStones* otherObject);
     126            void Collides(OrxoBloxStones* otherObject);
    128127
    129128            static const float MAX_REL_Z_VELOCITY;
     
    139138            void registerVariables();
    140139
     140            OrxoBlox* getOrxoBlox();
    141141            float fieldWidth_; //!< The width of the playing field.
    142142            float fieldHeight_; //!< The height of the playing field.
     
    150150            WorldSound* defBatSound_;
    151151            WorldSound* defBoundarySound_;
     152            OrxoBlox* orxoblox_;
    152153    };
    153154}
Note: See TracChangeset for help on using the changeset viewer.