remove test baseplate on load
This commit is contained in:
parent
0fc6b0cb54
commit
6c767b2061
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue