void kdRestart(KD kd,int bVerbose) { int l,k; ReadChkpt(kd,&l,&k); Grav(kd,l,k,kd->iSoftType,kd->bPeriodic,bVerbose); }
void kdGrav(KD kd,int iBlockSize,int iSoftType,int bPeriodic, int bVerbose) { kd->iSoftType = iSoftType; kd->bPeriodic = bPeriodic; kd->iBlockSize = iBlockSize; Grav(kd,0,0,iSoftType,bPeriodic,bVerbose); }
void StartArea::ApplyEffect() { Vector3 Grav(0,0,0); ActorBase* Act = NULL; Physics::PhysicsManager* PhysMan = Entresol::GetSingletonPtr()->GetPhysicsManager(); if(!AddedActors.empty()) { for( std::vector<ActorBase*>::iterator it = AddedActors.begin() ; it != AddedActors.end() ; it++ ) { Act = (*it); ((ActorBasePhysicsSettings*)Act->GetPhysicsSettings())->SetCollisionResponse(false); PhysMan->SetIndividualGravity(Act, Grav); } } if(!RemovedActors.empty()) { for( std::vector<ActorBase*>::iterator it = RemovedActors.begin() ; it != RemovedActors.end() ; it++ ) { Act = (*it); ((ActorBasePhysicsSettings*)Act->GetPhysicsSettings())->SetCollisionResponse(true); PhysMan->SetIndividualGravity(Act, PhysMan->GetGravity()); } } }