Files
2025-10-28 14:05:46 -04:00

31 lines
772 B
C++

/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Humanoid/Balancing.h"
#include "Util/Name.h"
namespace RBX {
namespace HUMAN {
// Flying occurs when there's no ground below you. You have the ability
// to turn around the y-axis, but not much else.
extern const char* const sRagdoll;
class Ragdoll : public Named<HumanoidState, sRagdoll>
{
private:
typedef Named<HumanoidState, sRagdoll> Super;
/*override*/ StateType getStateType() const {return RAGDOLL;}
/*override*/ void onStepImpl();
/*override*/ void onComputeForceImpl() {}
/*override*/ bool enableAutoJump() const { return false; }
public:
Ragdoll(Humanoid* humanoid, StateType priorState);
~Ragdoll();
};
} // namespace HUMAN
} // namespace