Changeset 10274
- Timestamp:
- Feb 15, 2015, 11:11:59 PM (10 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/levels/iJohnVane_TriptoArea51.oxw
r9992 r10274 376 376 377 377 <MovableEntity 378 position = "<?lua print(math.random()* 600-300) ?>,<?lua print(math.random() * 40000 + 110000) ?>,<?lua print(math.random() * 600-300) ?>"378 position = "<?lua print(math.random()* 600-300) ?>,<?lua print(math.random() * 40000 + 97000) ?>,<?lua print(math.random() * 600-300) ?>" 379 379 scale = "<?lua print(j * 40)?>" 380 380 velocity = "<?lua print(x*20-10)?>, <?lua print(y*60-160)?>, <?lua print(z*20-10)?>" … … 382 382 collisiondamage = 0.05 383 383 enablecollisiondamage = true 384 active = true384 active = false 385 385 > 386 386 <attached> 387 <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" > 388 <events> 389 <visibility> 390 <EventListener event="portal3" /> 391 </visibility> 392 </events> 393 </Model> 387 <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 394 388 </attached> 395 389 <collisionShapes> 396 390 <SphereCollisionShape radius="<?lua print(j * 50) ?>" /> 397 391 </collisionShapes> 392 <events> 393 <activity> 394 <EventListener event="portal3" /> 395 </activity> 396 </events> 398 397 </MovableEntity> 399 398 … … 414 413 ?> 415 414 <MovableEntity 416 position = "<?lua print(math.random()* 240-120) ?>,<?lua print(math.random() * 40000 + 110000) ?>,<?lua print(math.random()* 240-120) ?>"415 position = "<?lua print(math.random()* 240-120) ?>,<?lua print(math.random() * 40000 + 97000) ?>,<?lua print(math.random()* 240-120) ?>" 417 416 scale = "10" 418 417 velocity = "0, -160, 0" … … 420 419 collisiondamage = 0.05 421 420 enablecollisiondamage = true 422 active = true 423 visible = false 421 active = false 424 422 > 425 423 <attached> 426 <Model mass="2000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" > 427 <events> 428 <visibility> 429 <EventListener event="portal3" /> 430 </visibility> 431 </events> 432 </Model> 424 <Model mass="2000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 433 425 </attached> 434 426 <collisionShapes> 435 427 <SphereCollisionShape radius="10" /> 436 428 </collisionShapes> 429 <events> 430 <activity> 431 <EventListener event="portal3" /> 432 </activity> 433 </events> 437 434 </MovableEntity> 438 435 <?lua -
code/trunk/src/orxonox/worldentities/WorldEntity.cc
r9667 r10274 221 221 if(GameMode::isMaster()) 222 222 { 223 // physics is only enabled if the WorldEntity is active 224 if (this->isActive()) 225 this->activatePhysics(); 226 else 227 this->deactivatePhysics(); 228 229 // iterate over all children and change their activity as well 223 230 for (std::set<WorldEntity*>::const_iterator it = this->getAttachedObjects().begin(); it != this->getAttachedObjects().end(); it++) 224 231 { … … 246 253 if(GameMode::isMaster()) 247 254 { 255 // iterate over all children and change their visibility as well 248 256 for (std::set<WorldEntity*>::const_iterator it = this->getAttachedObjects().begin(); it != this->getAttachedObjects().end(); it++) 249 257 {
Note: See TracChangeset
for help on using the changeset viewer.