remove test baseplate on load

This commit is contained in:
floralrainfall 2023-07-22 04:23:52 -04:00
parent 0fc6b0cb54
commit 6c767b2061
2 changed files with 7 additions and 10 deletions

View File

@ -37,14 +37,6 @@ namespace RNR
void Humanoid::buildJoints()
{
if(getTorso() && getHead())
{
Weld* headWeld = new Weld();
headWeld->setBodies(getTorso(), getHead());
headWeld->link();
headWeld->setParent(getTorso());
}
if(getTorso())
{
btTransform ghostTransform;
@ -148,8 +140,6 @@ namespace RNR
move = direction * move;
move *= world->getComPlicitNgine()->getLastPhysicsDelta();
m_characterController->playerStep(world->getDynamicsWorld(), forward);
bool move_valid = true;
// TODO: collision checking

View File

@ -109,6 +109,13 @@ namespace RNR
{
m_refs.clear();
Instance* baseplate = findFirstChild("Baseplate");
if(baseplate)
{
baseplate->setParent(NULL);
delete baseplate;
}
JointsService* joints = (JointsService*)m_datamodel->getService("JointsService");
Camera* old_camera = m_workspace->getCurrentCamera();
if(old_camera)