Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2017, 6:38:00 PM (7 years ago)
Author:
vyang
Message:

Asteroids werden random geladen→ collisionShape und Bewegung einstellen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DCube.cc

    r11593 r11614  
    3434#include "Asteroids2D.h"
    3535#include "core/CoreIncludes.h"
     36#include "util/Math.h"
    3637
    3738namespace orxonox
     
    3940    RegisterClass(Asteroids2DCube);
    4041
    41     Asteroids2DCube::Asteroids2DCube(Context* context) : MovableEntity(context)
     42    Asteroids2DCube::Asteroids2DCube(Context* context) : Pawn(context)
    4243    {
    4344        RegisterObject(Asteroids2DCube);
     45        this->size = 1;
     46        this->width = 1043;
     47        this->height = 646;
     48        //this->setPosition();
     49        //this->setVelocity(Vector3 )
     50    }
     51
     52    void Asteroids2DCube::tick(float dt)
     53    {
     54        SUPER(Asteroids2DCube, tick, dt);
     55       
     56
    4457    }
    4558
Note: See TracChangeset for help on using the changeset viewer.