Skip to main content

Blog Archive

New Humanoid Properties: Custom Jump Height and Climbing Angle

December

03, 2015

by CodeWriter


Archive

ROBLOX characters have super powers. They can jump higher than they are tall and can climb up any hill, no matter how steep. Up until now, game creators had no easy way to control these powers. While this may be appropriate for some games, many game creators have been asking for a way to let them set how humanoid characters behave in their worlds. Some creators looking to disable jumping all together, while others seek to simulate low gravity moon physics, some have expressed a desire to use unclimbable high hills to direct characters down certain paths.

Jump Heights

So, we’ve added two new features to allow jumping and hill climbing to be customized per game. Now, the jumping power and maximum climbable angle for characters can be fully customized to provide default behavior unique to each game and character. Creators can set these properties once for all characters or they can be set individually to allow characters to behave differently, perhaps due to upgrades or character levels.

By default, these properties will be set so characters behave the same as they always have. By modifying these properties, creators can fully customize how their humanoid characters jump, climb and interact with their environment in a completely new way

Lua API

float Humanoid.MaxSlopeAngle

Provide control over the maximum angle that a Humanoid can run up in degrees

default: 89 clamped: 0 < angle < 90

This property can be used to adjust the angle of slopes that a humanoid can climb up allowing developers to create un-climbable cliffs, walls or other barriers to player movement.

float Humanoid.JumpPower

Provide control over the force with which a Humanoid jumps.

default: 50 clamped: 0 – 1000

This property can be used to adjust the height that a humanoid can jump, allowing developers to remove jumping, allow dynamically adjustable jump height based on character stats or raise the jump height (as if on the moon or such).  So jump in studio and test it out!