ProgrammingPhilippines / project_rei

Community Game Project of PPH
6 stars 0 forks source link

Character Locomotor #2

Open hddnblde opened 1 year ago

hddnblde commented 1 year ago

A component that moves a character:

hddnblde commented 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 commented 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.

copy that.

does this mean that the speed build up or instant speed change?

hddnblde commented 1 year ago

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)

hddnblde commented 1 year ago

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.

rekesan commented 1 year ago

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?

hddnblde commented 1 year ago

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.

rekesan commented 1 year ago

@hddnblde check branch 2-character-locomotor

hddnblde commented 1 year ago

Cool beans, check ko tomorro ng gabi. Take it easy then.

hddnblde commented 1 year ago

Greetings, I've updated the Character Locomotor na. You can pick another task. Thanks!