[Orxonox-commit 6021] r10680 - code/branches/campaignHS15/data/levels
bhatiab at orxonox.net
bhatiab at orxonox.net
Wed Oct 21 16:48:52 CEST 2015
Author: bhatiab
Date: 2015-10-21 16:48:52 +0200 (Wed, 21 Oct 2015)
New Revision: 10680
Modified:
code/branches/campaignHS15/data/levels/Campaign1.oxw
Log:
Fixed Coordinates
Modified: code/branches/campaignHS15/data/levels/Campaign1.oxw
===================================================================
--- code/branches/campaignHS15/data/levels/Campaign1.oxw 2015-10-20 18:23:56 UTC (rev 10679)
+++ code/branches/campaignHS15/data/levels/Campaign1.oxw 2015-10-21 14:48:52 UTC (rev 10680)
@@ -120,7 +120,7 @@
<EventMultiTrigger name=spawntrigger>
<events>
<trigger>
- <SpawnPoint team=1 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
+ <SpawnPoint team=1 position="0,-50,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
</trigger>
</events>
</EventMultiTrigger>
@@ -151,18 +151,20 @@
<!--STRUCTURE -->
- <StaticEntity position="-2500,0,1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
+ <!-- A, Coordinates are approx. (cos(29pi/16), sin(29pi/16), 0)*3000 -->
+ <StaticEntity position="2494,-1667,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
<attached>
- <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
+ <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
</attached>
<collisionShapes>
<BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
</collisionShapes>
</StaticEntity>
- <StaticEntity position="-2500,0,-1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
+ <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 -->
+ <StaticEntity position="-2494,-1667,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
<attached>
- <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" />
+ <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" />
</attached>
<collisionShapes>
<BoxCollisionShape position="0,0,0" halfExtents="10,10,10" />
@@ -171,6 +173,7 @@
<!--ELEMENTS -->
+ <!-- Enemies -->
<?lua
max = 5
for i = 1, max, 1
@@ -178,12 +181,12 @@
x = math.cos(math.pi/8*(i+1))*1500
y = math.sin(math.pi/8*(i+1))*1500
?>
- <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=2>
+ <SpaceShip position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=2>
<templates>
<Template link="spaceshippirate" />
</templates>
<controller>
- <WaypointPatrolController alertnessradius=600 team=1>
+ <WaypointPatrolController alertnessradius=50 team=1>
<waypoints>
<Attacher target="transporter" deletewithparent=false />
</waypoints>
@@ -192,24 +195,41 @@
</SpaceShip>
<?lua end ?>
- <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=1 name="transporter">
+ <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
+ <SpaceShip position="2450, -1667, 0" lookat="-2494, -1667, 0" team=1 name="transporter">
<templates>
<Template link="spaceshipTransporter" />
</templates>
<controller>
<WaypointController accuracy=10>
<waypoints>
- <Model mesh="sphere.mesh" scale=100 position="-2500,0,1650" />
+ <!-- A to B -->
<?lua
max = 5
for i = 1, max, 1
do
- x = math.cos(math.pi/8*(i+1))*3490
- y = -math.sin(math.pi/8*(i+1))*3490
+ x = math.cos(math.pi*(i+1)/8)*2613
+ y = -math.sin(math.pi*(i+1)/8)*2613-887
?>
- <Model mesh="sphere.mesh" scale=100 position="<?lua print(y) ?>+490,0,<?lua print(x) ?>" />
+ <Model mesh="sphere.mesh" scale=100 position="<?lua print(x) ?>,<?lua print(y) ?>,0" />
<?lua end ?>
- <Model mesh="sphere.mesh" scale=100 position="-2500,0,-1650" />
+
+ <!-- Return Point -->
+ <Model mesh="sphere.mesh" scale=100 position="-2450, -1667, 0" />
+
+ <!-- B to A -->
+ <?lua
+ max = 5
+ for i = 1, max, 1
+ do
+ x = math.cos(math.pi*(max+2-i)/8)*2613
+ y = -math.sin(math.pi*(max+2-i)/8)*2613-887
+ ?>
+ <Model mesh="sphere.mesh" scale=100 position="<?lua print(x) ?>,<?lua print(y) ?>,0" />
+ <?lua end ?>
+
+ <!-- Start Point -->
+ <Model mesh="sphere.mesh" scale=100 position="2450,-1667,0" />
</waypoints>
</WaypointController>
</controller>
More information about the Orxonox-commit
mailing list