Open hddnblde opened 1 year ago
@rekesan I've added a new item, please include a function to SetMoveSpeed
-- we'll have a "speed up" buff implemented in the near future. This also means we'll have the ability to "slow down" the player as a debuff.
@rekesan I've added a new item, please include a function to
SetMoveSpeed
-- we'll have a "speed up" buff implemented in the near future. This also means we'll have the ability to "slow down" the player as a debuff.
copy that.
does this mean that the speed build up or instant speed change?
hmm good question. since ung direction is a normalized vector3, let's try instant muna. Then let's see if sa side ng locomotor mangyayari ung smoothing, or dun sa side nung nag cacall ng Move
ung mag-a-adjust (e.g ung direction is magkakaroon ng post-processing before pumasok sa locomotor)
I think ang rationale ko dito so that hindi kelangan i worry ng locomotor kung anong logic ng movement nya (e.g walking, normal run, sprinting) since i-mu-multiply nya lang sa direction (and ung set speed magdidikta ng final velocity). That way kung gusto naten i modify ung movement ni player:
removes the burden ng logic to locomotor.
okay okay, i think i can finish the listed requirements in an hour. one thing lang na inaalala ko since isometric sya, yung direction ay dapat ioffset ng 45 deg angle?
No need, kung ano ung direction in world space apply it as it is -- bali ung logic for telling "which left is left, right is right" will come from the parent class "Player Module" I'll be responsible for implementing that.
@hddnblde check branch 2-character-locomotor
Cool beans, check ko tomorro ng gabi. Take it easy then.
Greetings, I've updated the Character Locomotor na. You can pick another task. Thanks!
A component that moves a character:
Move(Vector3 direction)
function, which moves the position relative to input direction.LookAt(float heading)
function, which rotates towards the target heading (heading is a value described in degrees, similar to yaw or eulerAngles.y)movementSpeed
that controls the rate of movement.turnSpeed
that controls the rate of rotation. (controls the "LookAt" speed)SetMoveSpeed(float speed)
function which sets the movement speed. This will be used for editing player's movement speed when a "speed up" buff is applied.