Beispiel #1
0
void kdRestart(KD kd,int bVerbose)
{
	int l,k;

	ReadChkpt(kd,&l,&k);
	Grav(kd,l,k,kd->iSoftType,kd->bPeriodic,bVerbose);
	}
Beispiel #2
0
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);
	}
Beispiel #3
0
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());
        }
    }
}