---
# System prepended metadata

title: Mechanics
tags: [BA3, CGL, Semesterproject, ElectrodZ]

---

###### tags: `Semesterproject` `CGL` `BA3` `ElectrodZ`

# Mechanics

- [x] movement:
    - [x]  different movement-speed ahead / strafing
    - [x] sprinting to change movement speed
    - [x] sprinting is acceleration rather than immediate movespeed change

- [x] jumping:
    - [x]  double jumping replacing vertical velocity if positive, or replaces with a scaled jump velocity base on how negative vertical velocity was
    - [x] jumpBaseDirection is kept when leaving the ground
    - [x] wasd does not influence jumBaseDirection(the movement when you leave the ground) so much
    - [x]  using the double jump changes jumBaseDirection to whatever is pressed when you doublejump

- [ ]  hit detection melee:
    - [x] spherecast based on origin and pass-through-point, specify width & range
        - queryTriggerInteraction.Collide
    - [ ] give characters trigger colliders
