Skip to content

Commit

Permalink
character_controller.lua: remove unused fields / vars (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
metaleap authored Jan 21, 2025
1 parent 0022b69 commit 257206d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Content/scripts/character_controller/character_controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ local function Character(model_scene, start_transform, controllable, anim_scene,
target_rot_vertical = 0,
target_height = 0,
anims = {},
anim_amount = 1,
neck = INVALID_ENTITY,
head = INVALID_ENTITY,
left_hand = INVALID_ENTITY,
Expand All @@ -89,8 +88,6 @@ local function Character(model_scene, start_transform, controllable, anim_scene,
right_foot = INVALID_ENTITY,
left_toes = INVALID_ENTITY,
right_toes = INVALID_ENTITY,
leaning_next = 0, -- leaning sideways when turning
leaning = 0, -- leaning sideways when turning (smoothed)
savedPointerPos = Vector(),
walk_speed = 0.1,
jog_speed = 0.2,
Expand All @@ -103,8 +100,6 @@ local function Character(model_scene, start_transform, controllable, anim_scene,
position = Vector(),
ground_intersect = false,
controllable = true,
fixed_update_remain = 0,
timestep_occured = false,
root_offset = 0,
foot_placed_left = false,
foot_placed_right = false,
Expand Down Expand Up @@ -165,7 +160,6 @@ local function Character(model_scene, start_transform, controllable, anim_scene,
local charactercomponent = scene.Component_GetCharacter(self.model)
self.ground_intersect = charactercomponent.IsGrounded()
self.position = charactercomponent.GetPositionInterpolated()
local velocity = charactercomponent.GetVelocity()
local capsule = charactercomponent.GetCapsule()
character_capsules[self.model] = capsule
--DrawCapsule(capsule)
Expand Down Expand Up @@ -491,7 +485,6 @@ local function Character(model_scene, start_transform, controllable, anim_scene,
layer.SetLayerMask(self.layerMask)

self.state = States.IDLE
self.state_prev = self.state

for i,entity in ipairs(scene.Entity_GetHumanoidArray()) do
if scene.Entity_IsDescendant(entity, self.model) then
Expand Down

0 comments on commit 257206d

Please sign in to comment.