Implement animation root motion deltas (#84)
Implements root motion and adds a dash attack. Reviewed-on: #84 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #84.
This commit is contained in:
@@ -41,6 +41,7 @@ pub enum ViewerAttack {
|
||||
UpSmash,
|
||||
DownSmash,
|
||||
ForwardSmash,
|
||||
DashAttack,
|
||||
}
|
||||
|
||||
impl From<ViewerAttack> for AttackKind {
|
||||
@@ -58,6 +59,7 @@ impl From<ViewerAttack> for AttackKind {
|
||||
ViewerAttack::UpSmash => Self::UpSmash,
|
||||
ViewerAttack::DownSmash => Self::DownSmash,
|
||||
ViewerAttack::ForwardSmash => Self::ForwardSmash,
|
||||
ViewerAttack::DashAttack => Self::DashAttack,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,7 +102,7 @@ struct ViewerState {
|
||||
manifest_path: String,
|
||||
}
|
||||
|
||||
const VIEWER_ATTACKS: [AttackKind; 12] = [
|
||||
const VIEWER_ATTACKS: [AttackKind; 13] = [
|
||||
AttackKind::NeutralAir,
|
||||
AttackKind::ForwardAir,
|
||||
AttackKind::BackAir,
|
||||
@@ -113,6 +115,7 @@ const VIEWER_ATTACKS: [AttackKind; 12] = [
|
||||
AttackKind::UpSmash,
|
||||
AttackKind::DownSmash,
|
||||
AttackKind::ForwardSmash,
|
||||
AttackKind::DashAttack,
|
||||
];
|
||||
|
||||
pub struct HitboxViewerPlugin;
|
||||
|
||||
Reference in New Issue
Block a user