Huge rework of editor and other changes.
This commit is contained in:
@@ -90,6 +90,12 @@ namespace Nuake
|
||||
return false;
|
||||
}
|
||||
|
||||
bool FileSystem::FileExists(const std::string path)
|
||||
{
|
||||
std::ifstream f(path.c_str());
|
||||
return f.good();
|
||||
}
|
||||
|
||||
void FileSystem::SetRootDirectory(const std::string path)
|
||||
{
|
||||
Root = path;
|
||||
|
||||
@@ -129,8 +129,6 @@ namespace Nuake
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CharacterController::UpdatePosition()
|
||||
{
|
||||
// Ray cast, ignore rigid body
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace Nuake
|
||||
|
||||
void DynamicWorld::StepSimulation(Timestep ts)
|
||||
{
|
||||
dynamicsWorld->stepSimulation(ts);
|
||||
dynamicsWorld->stepSimulation(ts, 0);
|
||||
for (int j = dynamicsWorld->getNumCollisionObjects() - 1; j >= 0; j--)
|
||||
{
|
||||
btCollisionObject* obj = dynamicsWorld->getCollisionObjectArray()[j];
|
||||
|
||||
Reference in New Issue
Block a user