This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+43
View File
@@ -0,0 +1,43 @@
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Humanoid/Flying.h"
namespace RBX {
namespace HUMAN {
extern const char* const sJumping;
class Jumping : public Named<Flying, sJumping>
{
private:
typedef Named<Flying, sJumping> Super;
/*override*/ StateType getStateType() const {return JUMPING;}
// Humanoid::State
/*override*/ void onComputeForceImpl();
/*override*/ bool armsShouldCollide() const {return false;}
/*override*/ bool legsShouldCollide() const {return false;}
/*override*/ bool torsoShouldCollide() const {return false;}
// Override hitTestFiler
/*override*/ Result filterResult(const Primitive* testMe) const;
bool findCeiling();
shared_ptr<PartInstance> tryCeiling(const RbxRay& ray, float maxDistance, Assembly* humanoidAssembly);
Vector3 jumpDir;
public:
Jumping(Humanoid* humanoid, StateType priorState);
static float kJumpP() {return 500.0f;}
static float kJumpVelocityGrid() {return 50.0f;}
};
} // namespace HUMAN
} // namespace