Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2014, 4:06:03 PM (10 years ago)
Author:
muemart
Message:

Limit turret's rotation (another method…), work a bit on the controller, and make a (ugly?) hack to allow attaching dynamic objects

Location:
code/branches/turretFS14/data/levels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turretFS14/data/levels/templates/spaceshipAssff.oxt

    r9939 r10031  
    4848      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
    4949      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
     50
     51              <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
     52            <templates>
     53              <Template link=spaceshipturrettest />
     54            </templates>
     55            <controller>
     56              <TurretController team=10 />
     57            </controller>
     58        </Turret>
     59
    5060    </attached>
    5161    <collisionShapes>
  • code/branches/turretFS14/data/levels/templates/spaceshipTurretTest.oxt

    r10021 r10031  
    22  <Turret position="0,0,0" collisionType="dynamic" angularDamping=0.999999 mass=100>
    33    <attached>
    4         <Model position="0,0,0" pitch="90" roll="0" mesh="turretHead.mesh" scale3D="10,10,10"/>
     4        <Model position="0,0,0" pitch="-90" roll="0" mesh="turretHead.mesh" scale3D="10,10,10"/>
    55    </attached>
    66    <collisionShapes>
  • code/branches/turretFS14/data/levels/turretTest.oxw

    r10018 r10031  
    3434
    3535
    36 <StaticEntity position="0,0,0" yaw=0 pitch=0>
     36<MovableEntity position="0,0,0" yaw=0 pitch=0>
    3737    <attached>
    3838        <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
     
    4242        <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
    4343
    44         <Turret position="0,10,0" pitch="-90" yaw="0" roll="0" maxPitch=30 maxYaw=30>
     44        <!-- <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
    4545            <templates>
    4646              <Template link=spaceshipturrettest />
     
    4949              <TurretController team=10 />
    5050            </controller>
    51         </Turret>
     51        </Turret> -->
    5252
    53         <Model mesh="sphere.mesh" position="25,0,0" scale=1 />
     53        <Model mesh="sphere.mesh" position="20,0,0" scale=1/>
    5454
    55         <Model mesh="sphere.mesh" position="0,25,0" scale=1 />
     55        <Model mesh="sphere.mesh" position="0,25,0" scale=1/>
    5656
    57         <Model mesh="sphere.mesh" position="0,0,25" scale=1 />
     57        <Model mesh="sphere.mesh" position="0,0,30" scale=1/>
    5858
    5959    </attached>
    60 </StaticEntity>
     60</MovableEntity>
    6161
    6262
Note: See TracChangeset for help on using the changeset viewer.