mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
25 lines
561 B
C++
25 lines
561 B
C++
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
|
#include "stdafx.h"
|
|
|
|
#include "Humanoid/GettingUp.h"
|
|
#include "Humanoid/Humanoid.h"
|
|
#include "V8World/World.h"
|
|
|
|
|
|
namespace RBX {
|
|
namespace HUMAN {
|
|
|
|
const char* const sGettingUp = "GettingUp";
|
|
|
|
GettingUp::GettingUp(Humanoid* humanoid, StateType priorState) : Named<Balancing, sGettingUp>(humanoid, priorState, 5000.0f, 300.0f)
|
|
{
|
|
if (humanoid && humanoid->getWorld()->getUsingPGSSolver())
|
|
{
|
|
setBalanceP(2250.0f);
|
|
setBalanceD(50.0f);
|
|
}
|
|
}
|
|
|
|
|
|
} // namespace
|
|
} // namespace
|