mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
31 lines
772 B
C++
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
|
|
|