![]() ![]() WalkSpeed → Maximum velocity when holding onto a key. HipHeight → Self explanatory default humanoid hipheight calculations with an added + 0.5 for the spring systemįlatFriction → Friction opposite of velocity direction while moving, always a constant value of 500 and slowly stabilizes at 0 when not moving allowing for responsive stops. Suspension → More suspension means more suspension force, 11000 was the max value I found before the springs were too strong and shot itself to space. Task.spawn(AnimateFunction, newCharacter, characterController) -Init animation based on default animate scriptĪdditionally there are attributes that are created by the script onto the character model which control the movement the explanation is listed below:īounce → Dampening on the spring based standing force, increased bounce value causes decreased dampening value causing more bounce characterController:AddComponent("AirStrafe") -Component is WIPĬharacterController:ConnectComponentsToInput() Local characterController = PhysicsCharacterController.new(rootPart)ĬharacterController:AddDefaultComponents()ĬharacterController:AddComponent("Slide") Object auto destroys input when character is not in workspace (Destroyed) Local humanoid : Humanoid = newCharacter:WaitForChild("Humanoid") Local rootPart = newCharacter:WaitForChild("HumanoidRootPart") ![]() Local initChar = function(newCharacter : Model) Local character = player.Character or player.CharacterAdded:Wait() Local PhysicsCharacterController = require(script.PhysicsCharacterController) Example local script usage on the API: -StarterPlayerScripts, runs once
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |