-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add animations to player (#98)
* chore: add some animations * feat: create animator for player weapons * feat: add player movement animations * fix: add animator for first test scene * chore: handle comments; combine animation clips; add proper check for ranged weapon * test: add test for weapon can animate * chore: rename CanAnimate to CanFire * chore: re-add animator --------- Co-authored-by: Quake <[email protected]>
- Loading branch information
Showing
28 changed files
with
3,455 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
231 changes: 231 additions & 0 deletions
231
aplib.net-demo/Assets/Animation/Animations/Player/IdlePlayer.anim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!74 &7400000 | ||
AnimationClip: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_Name: IdlePlayer | ||
serializedVersion: 7 | ||
m_Legacy: 0 | ||
m_Compressed: 0 | ||
m_UseHighQualityCurve: 1 | ||
m_RotationCurves: [] | ||
m_CompressedRotationCurves: [] | ||
m_EulerCurves: [] | ||
m_PositionCurves: | ||
- curve: | ||
serializedVersion: 2 | ||
m_Curve: | ||
- serializedVersion: 3 | ||
time: 0 | ||
value: {x: 0, y: 0, z: 0} | ||
inSlope: {x: 0, y: 0, z: 0} | ||
outSlope: {x: 0, y: 0.013333333, z: 0} | ||
tangentMode: 0 | ||
weightedMode: 0 | ||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
- serializedVersion: 3 | ||
time: 0.75 | ||
value: {x: 0, y: 0.01, z: 0} | ||
inSlope: {x: 0, y: 0, z: 0} | ||
outSlope: {x: 0, y: 0, z: 0} | ||
tangentMode: 0 | ||
weightedMode: 0 | ||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
- serializedVersion: 3 | ||
time: 1.5 | ||
value: {x: 0, y: 0, z: 0} | ||
inSlope: {x: 0, y: -0.013333333, z: 0} | ||
outSlope: {x: 0, y: -0.013333333, z: 0} | ||
tangentMode: 0 | ||
weightedMode: 0 | ||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
- serializedVersion: 3 | ||
time: 2.25 | ||
value: {x: 0, y: -0.01, z: 0} | ||
inSlope: {x: 0, y: 0, z: 0} | ||
outSlope: {x: 0, y: 0, z: 0} | ||
tangentMode: 0 | ||
weightedMode: 0 | ||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
- serializedVersion: 3 | ||
time: 3 | ||
value: {x: 0, y: 0, z: 0} | ||
inSlope: {x: -0, y: 0.013333333, z: -0} | ||
outSlope: {x: 0, y: 0, z: 0} | ||
tangentMode: 0 | ||
weightedMode: 0 | ||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} | ||
m_PreInfinity: 2 | ||
m_PostInfinity: 2 | ||
m_RotationOrder: 4 | ||
path: PlayerRotation/PlayerVisual | ||
m_ScaleCurves: [] | ||
m_FloatCurves: [] | ||
m_PPtrCurves: [] | ||
m_SampleRate: 60 | ||
m_WrapMode: 0 | ||
m_Bounds: | ||
m_Center: {x: 0, y: 0, z: 0} | ||
m_Extent: {x: 0, y: 0, z: 0} | ||
m_ClipBindingConstant: | ||
genericBindings: | ||
- serializedVersion: 2 | ||
path: 3430848198 | ||
attribute: 1 | ||
script: {fileID: 0} | ||
typeID: 4 | ||
customType: 0 | ||
isPPtrCurve: 0 | ||
isIntCurve: 0 | ||
isSerializeReferenceCurve: 0 | ||
pptrCurveMapping: [] | ||
m_AnimationClipSettings: | ||
serializedVersion: 2 | ||
m_AdditiveReferencePoseClip: {fileID: 0} | ||
m_AdditiveReferencePoseTime: 0 | ||
m_StartTime: 0 | ||
m_StopTime: 3 | ||
m_OrientationOffsetY: 0 | ||
m_Level: 0 | ||
m_CycleOffset: 0 | ||
m_HasAdditiveReferencePose: 0 | ||
m_LoopTime: 0 | ||
m_LoopBlend: 0 | ||
m_LoopBlendOrientation: 0 | ||
m_LoopBlendPositionY: 0 | ||
m_LoopBlendPositionXZ: 0 | ||
m_KeepOriginalOrientation: 0 | ||
m_KeepOriginalPositionY: 1 | ||
m_KeepOriginalPositionXZ: 0 | ||
m_HeightFromFeet: 0 | ||
m_Mirror: 0 | ||
m_EditorCurves: | ||
- serializedVersion: 2 | ||
curve: | ||
serializedVersion: 2 | ||
m_Curve: | ||
- serializedVersion: 3 | ||
time: 0 | ||
value: 0 | ||
inSlope: 0 | ||
outSlope: 0 | ||
tangentMode: 136 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
- serializedVersion: 3 | ||
time: 3 | ||
value: 0 | ||
inSlope: -0 | ||
outSlope: 0 | ||
tangentMode: 5 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
m_PreInfinity: 2 | ||
m_PostInfinity: 2 | ||
m_RotationOrder: 4 | ||
attribute: m_LocalPosition.x | ||
path: PlayerRotation/PlayerVisual | ||
classID: 4 | ||
script: {fileID: 0} | ||
flags: 0 | ||
- serializedVersion: 2 | ||
curve: | ||
serializedVersion: 2 | ||
m_Curve: | ||
- serializedVersion: 3 | ||
time: 0 | ||
value: 0 | ||
inSlope: 0 | ||
outSlope: 0.013333333 | ||
tangentMode: 65 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
- serializedVersion: 3 | ||
time: 0.75 | ||
value: 0.01 | ||
inSlope: 0 | ||
outSlope: 0 | ||
tangentMode: 136 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
- serializedVersion: 3 | ||
time: 1.5 | ||
value: 0 | ||
inSlope: -0.013333333 | ||
outSlope: -0.013333333 | ||
tangentMode: 136 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
- serializedVersion: 3 | ||
time: 2.25 | ||
value: -0.01 | ||
inSlope: 0 | ||
outSlope: 0 | ||
tangentMode: 136 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
- serializedVersion: 3 | ||
time: 3 | ||
value: 0 | ||
inSlope: 0.013333333 | ||
outSlope: 0 | ||
tangentMode: 5 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
m_PreInfinity: 2 | ||
m_PostInfinity: 2 | ||
m_RotationOrder: 4 | ||
attribute: m_LocalPosition.y | ||
path: PlayerRotation/PlayerVisual | ||
classID: 4 | ||
script: {fileID: 0} | ||
flags: 0 | ||
- serializedVersion: 2 | ||
curve: | ||
serializedVersion: 2 | ||
m_Curve: | ||
- serializedVersion: 3 | ||
time: 0 | ||
value: 0 | ||
inSlope: 0 | ||
outSlope: 0 | ||
tangentMode: 65 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
- serializedVersion: 3 | ||
time: 3 | ||
value: 0 | ||
inSlope: -0 | ||
outSlope: 0 | ||
tangentMode: 5 | ||
weightedMode: 0 | ||
inWeight: 0.33333334 | ||
outWeight: 0.33333334 | ||
m_PreInfinity: 2 | ||
m_PostInfinity: 2 | ||
m_RotationOrder: 4 | ||
attribute: m_LocalPosition.z | ||
path: PlayerRotation/PlayerVisual | ||
classID: 4 | ||
script: {fileID: 0} | ||
flags: 0 | ||
m_EulerEditorCurves: [] | ||
m_HasGenericRootTransform: 0 | ||
m_HasMotionFloatCurves: 0 | ||
m_Events: [] |
8 changes: 8 additions & 0 deletions
8
aplib.net-demo/Assets/Animation/Animations/Player/IdlePlayer.anim.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.