Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11934


Ignore:
Timestamp:
May 3, 2018, 3:47:08 PM (7 years ago)
Author:
sehirsch
Message:

updated camera and cube pattern

Location:
code/branches/OrxyRoad_FS18
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxyRoad_FS18/data/levels/templates/OrxyRoadPattern.oxt

    r11914 r11934  
    7575
    7676</Template>
     77
     78<Template name=cokebottle>
     79       
     80        <OrxyRoadCube position="0,0,0" direction="0,0,0"   scale="1" collisionType=dynamic mass=1 friction=0.01 >
     81      <attached>
     82        <Model position="0,0,0"                 mesh="cokebottle.mesh"          scale="50"      />
     83               
     84      </attached>
     85      <collisionShapes>
     86                <BoxCollisionShape position="0,0,0"                             halfExtents="100,100,100"       />
     87               
     88      </collisionShapes>
     89        </OrxyRoadCube>
     90
     91</Template>
  • code/branches/OrxyRoad_FS18/data/levels/templates/spaceshipOrxyRoad.oxt

    r11899 r11934  
    8080  <OrxyRoadShip>
    8181    <camerapositions>
    82                 <CameraPosition position="0,100,180" direction="0, -0.2, -1" drag=false mouselook=true />
     82                <CameraPosition position="200,200,360" direction="-0.4, -0.4, -1" yaw="0" drag=false mouselook=true />
    8383                <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
    8484                <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
  • code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoad.cc

    r11916 r11934  
    9191    void OrxyRoad::tick(float dt)
    9292    {
     93        SUPER(OrxyRoad, tick, dt);
     94       
    9395        OrxyRoadShip* player = this->getPlayer();
    9496        if (player != nullptr)
     
    148150
    149151        }
    150         SUPER(OrxyRoad, tick, dt);
    151152    }
    152153
  • code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoadShip.cc

    r11908 r11934  
    144144        if (camera != nullptr)
    145145        {
    146             //camera->setPosition(Vector3(pos1.x - 10 ,50,0));
     146           camera->setPosition(Vector3(0 ,50,50)); // try to get side/top view
    147147            //camera->setOrientation(Vector3(-1,-1,0), Degree(45));
    148148            //camera->setOrientation(Vector3(-1,-1,-1), Degree(0));
Note: See TracChangeset for help on using the changeset viewer.