Created
November 10, 2014 04:52
-
-
Save BobGneu/b58e0d88b482e6f2eefc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APlanet *AExodusGameMode::CreatePlanet() | |
{ | |
FVector Location = FVector::ZeroVector; | |
APlanet *planet; | |
planet = GetWorld()->SpawnActor<APlanet>(Location, FRotator::ZeroRotator); | |
check(planet != NULL); | |
planet->SetRotationRate(FMath::SRand() * 2 * PlanetRotationRate - PlanetRotationRate); | |
planet->EnsureViscinityIsClear(WorldBounds); | |
return planet; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment