In this section you will learn how to work with recoil .
Recoil Animation component
Recoil Animation is a component that generates smooth and fluid firing animations at runtime:
Recoil Animation component.
This component has 3 methods that need to be called in the shooting code.
public void Play(); // Fired a gun, call it every shot.
public void Stop(); // Call it when the fire key is released.
// Call this when a gun is equipped.void Init(RecoilAnimData data, float fireRate, FireMode newFireMode);
Recoil Anim Data
Recoil parameters are defined in the RecoilAnimData — a Scriptable Object that you can create via right-click ▸ Create ▸ KINEMATION ▸ Procedural Recoil ▸ Recoil Data:
Recoil Anim Data properties.
Recoil targets
Smoothing
Layers
Miscellaneous
Pitch - max and min values for the pitch (up) rotation.
Roll - max and min values for the roll rotation.
Yaw - max and min values for the yaw (right) rotation.
Roll and Yaw components are Vector4. That’s because of the way random values are calculated:Minimum value for Roll and Yaw is a random value in [X;Y] range, while the maximum value is in [Z;W] range.Aim Rot and Aim Loc define multipliers for each rotation and translation. Applied when aiming.
Smooth Rot/Loc - defines interpolation speed for rotation and translation. Not applied if 0.
Extra Rot/Loc - multipliers applied in auto/burst mode only.
Noise layer is a continuous 2D movement that simulates inaccuracy when firing.
Noise X/Y - max and min values for position offsets along X and Y axes (right and up movement).
Pushback layer is applied on the first shot of the auto or burst fire mode.
Push Amount - maximum value of the pushback.
Push Accel - acceleration speed.
Push Damp - damping speed.
Hip Pivot Offset - weapon pivot offset when hip firing.
Aim Pivot Offset - weapon pivot offset when aiming.
Smooth Roll - if enabled, the sign of a random value for roll will change every shot.
Play Rate - the speed of the recoil animation.
Recoil Curves - normalized animation curves.
Recoil curves
There are 4 Vector curves in the data asset. Each curve animates the rotation or translation when auto or single firing.
Example semi curves.
All curves must start and end with zero.
Here’s the difference between auto and semi curves:
Auto curve
Semi curve
Curves are almost identical. The only difference is that the Auto curve value is very close to zero at some point. This point is the delay between shots.
For example, a fire rate of 600 RPM has a delay of 0.1 seconds between shots. All auto curves must be close to 0 at 0.1 seconds.
When auto or burst mode is enabled, the curve length is set to the fire delay. The auto or burst curve is cropped to the delay between shots.
Apply recoil animation
Add the Recoil Animation component to the character’s prefab and apply the changes. Then, add a Modify Bone modifier to the Procedural Animation settings and bind the recoil OutRot and OutLoc values:
Modify Bone and Recoil Animation.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Kinemation","colors":{"primary":"#6B4FE8","light":"#EDE9FB","dark":"#2D1F7A"},"logo":{"light":"https://mintcdn.com/kinemation/Oe4SC8lqotg2knLA/images/Kinemation_Logo_Circle.svg?fit=max\u0026auto=format\u0026n=Oe4SC8lqotg2knLA\u0026q=85\u0026s=6a2a2b50270f33282685e0eeb7466c37","dark":"https://mintcdn.com/kinemation/Oe4SC8lqotg2knLA/images/Kinemation_Logo_Circle.svg?fit=max\u0026auto=format\u0026n=Oe4SC8lqotg2knLA\u0026q=85\u0026s=6a2a2b50270f33282685e0eeb7466c37"},"favicon":{"light":"https://mintcdn.com/kinemation/Oe4SC8lqotg2knLA/images/Kinemation_Logo_Circle.svg?fit=max\u0026auto=format\u0026n=Oe4SC8lqotg2knLA\u0026q=85\u0026s=6a2a2b50270f33282685e0eeb7466c37","dark":"https://mintcdn.com/kinemation/Oe4SC8lqotg2knLA/images/Kinemation_Logo_Circle.svg?fit=max\u0026auto=format\u0026n=Oe4SC8lqotg2knLA\u0026q=85\u0026s=6a2a2b50270f33282685e0eeb7466c37"},"navbar":{"links":[],"primary":{"type":"github","href":"https://github.com/kinemation"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@kinemationstudio","discord":"https://discord.gg/kinemation-1027338787958816860"}},"integrations":{"ga4":{"measurementId":"G-QPSE9FYEMW"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kinemation","hasAudioNarration":false,"actualSubdomain":"kinemation","customDomains":["docs.kinemation.xyz"],"gitSource":{"type":"github","owner":"kinemation","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10fa759ffae5051c41b38c"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0efa88f4b490f2ad805b02","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Unreal Engine","count":83},{"language":"default","tag":"Unity","count":75},{"language":"default","tag":"Character Animation System","count":67},{"language":"default","tag":"General","count":58},{"language":"default","tag":"Survival Pack","count":50},{"language":"default","tag":"Scriptable Animation System","count":45},{"language":"default","tag":"Sci-Fi FPS Pack","count":42},{"language":"default","tag":"Tactical Shooter Pack","count":38},{"language":"default","tag":"Tutorials","count":32},{"language":"default","tag":"FPS Animation Pack","count":30}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@kinemation.xyz"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"main :is(img,video){display:block;max-width:min(var(--kinemation-image-max-width), 100%);height:auto;margin-inline:auto}main .frame{max-width:min(var(--kinemation-image-max-width), 100%);margin-inline:auto}main .frame :is(img,video){max-width:100%}:root{--kinemation-image-max-width: 75%;--kinemation-callout-text-light: #4b5563;--kinemation-callout-text-dark: #f3f4f6}[data-component-part=\"callout-content\"]{color:var(--kinemation-callout-text-light)!important}html.dark [data-component-part=\"callout-content\"]{color:var(--kinemation-callout-text-dark)!important}"}]}
{"page":{"pagePath":"cas/fps/recoil-animation","slug":"/cas/fps/recoil-animation","pageMetadata":{"title":"🔫Recoil Animation","sidebarTitle":"🔫Recoil Animation","description":"In this section you will learn how to work with recoil .","href":"/cas/fps/recoil-animation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"In this section you will learn how to work with recoil .\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={blockquote:`blockquote`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Info,OptimizedImage,Tab,Tabs,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`recoil-animation-component`,children:`Recoil Animation component`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Recoil Animation`}),` is a component that generates smooth and fluid firing animations at runtime:`]}),`\n`,_jsx(Frame,{caption:`Recoil Animation component.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=fc7af18c7e9d96efac988c63f351e8cc`,alt:`Recoil Animation component in the Unity Inspector`,width:413,\"data-og-width\":`550`,\"data-og-height\":`143`,\"data-path\":`images/cas/0bfe6da2058e6100c172.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?w=280\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=8ae6c5a4f76dded4d81b5e9b4cda1512 280w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?w=560\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=8dd4d4d10cd72113172dca9e3dd7a5f5 560w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?w=840\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=947c87209dc2fba42bd15fcd9bc6412f 840w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?w=1100\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=9bc059d694e9cd35712f6114b1601d31 1100w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?w=1650\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=4aad497eceeb6682de8353d87b41b241 1650w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/0bfe6da2058e6100c172.png?w=2500\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=bede7288611df928d997a64b2c21c1f4 2500w`})}),`\n`,_jsx(_components.p,{children:`This component has 3 methods that need to be called in the shooting code.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Play`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Fired a gun, call it every shot.`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Call it when the fire key is released.`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Call this when a gun is equipped.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`RecoilAnimData`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`float`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` fireRate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FireMode`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` newFireMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`recoil-anim-data`,children:`Recoil Anim Data`}),`\n`,_jsxs(_components.p,{children:[`Recoil parameters are defined in the RecoilAnimData — a Scriptable Object that you can create via `,_jsx(_components.strong,{children:`right-click ▸ Create ▸ KINEMATION ▸ Procedural Recoil ▸ Recoil Data`}),`:`]}),`\n`,_jsx(Frame,{caption:`Recoil Anim Data properties.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=dd57960b5794e78d9793108869255cb6`,alt:`Recoil Anim Data properties in the Unity Inspector`,width:404,\"data-og-width\":`538`,\"data-og-height\":`407`,\"data-path\":`images/cas/dfbbcc39780f40ab8b39.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?w=280\u0026fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=edfedbdac77ed88aa335abfb32afe0ab 280w, https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?w=560\u0026fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=245625a7cb95742fcc0838185b6b9bd3 560w, https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?w=840\u0026fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=24d5f5bcb2b6f9e77e013498112a56f9 840w, https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?w=1100\u0026fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=a7f61daa615a998d036b9b97df222e3e 1100w, https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?w=1650\u0026fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=ca89f6b8f2c0465952745cf32415fe21 1650w, https://mintcdn.com/kinemation/bY9DOuHDrQwriMA1/images/cas/dfbbcc39780f40ab8b39.png?w=2500\u0026fit=max\u0026auto=format\u0026n=bY9DOuHDrQwriMA1\u0026q=85\u0026s=bf6ac6c12ed115ef43c4a8912ddc0c6e 2500w`})}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Recoil targets`,id:`recoil-targets`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pitch`}),` - max and min values for the pitch (up) rotation.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Roll`}),` - max and min values for the roll rotation.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Yaw`}),` - max and min values for the yaw (right) rotation.`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Roll and Yaw`}),` components are Vector4. That’s because of the way random values are calculated:`]}),_jsxs(_components.p,{children:[`Minimum value for `,_jsx(_components.strong,{children:`Roll and Yaw`}),` is a random value in [X;Y] range, while the maximum value is in [Z;W] range.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Aim Rot`}),` and `,_jsx(_components.strong,{children:`Aim Loc`}),` define multipliers for each rotation and translation. Applied when aiming.`]})]}),_jsx(Tab,{title:`Smoothing`,id:`smoothing`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Smooth Rot/Loc`}),` - defines interpolation speed for rotation and translation. Not applied if 0.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Extra Rot/Loc`}),` - multipliers applied in auto/burst mode only.`]}),`\n`]})}),_jsxs(Tab,{title:`Layers`,id:`layers`,children:[_jsx(_components.p,{children:`Noise layer is a continuous 2D movement that simulates inaccuracy when firing.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Noise X/Y`}),` - max and min values for position offsets along X and Y axes (right and up movement).`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Noise Accel`}),` - acceleration speed.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Noise Damp`}),` - damping speed. `,_jsx(_components.strong,{children:`Noise Scalar`}),` - aiming multiplier.`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Pushback layer is applied on the first shot of the auto or burst fire mode.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Push Amount`}),` - maximum value of the pushback.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Push Accel`}),` - acceleration speed.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Push Damp`}),` - damping speed.`]}),`\n`]}),`\n`]})]}),_jsx(Tab,{title:`Miscellaneous`,id:`miscellaneous`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Hip Pivot Offset`}),` - weapon pivot offset when hip firing.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Aim Pivot Offset`}),` - weapon pivot offset when aiming.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Smooth Roll`}),` - if enabled, the sign of a random value for roll will change every shot.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Play Rate`}),` - the speed of the recoil animation.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Recoil Curves`}),` - normalized animation curves.`]}),`\n`]}),`\n`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`recoil-curves`,children:`Recoil curves`}),`\n`,_jsx(_components.p,{children:`There are 4 Vector curves in the data asset. Each curve animates the rotation or translation when auto or single firing.`}),`\n`,_jsx(Frame,{caption:`Example semi curves.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=fd9c813ce7caa26fb3520c9f5a3684e0`,alt:`Example semi-fire recoil curves`,width:404,\"data-og-width\":`538`,\"data-og-height\":`205`,\"data-path\":`images/cas/5d83dd34d454453a9139.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?w=280\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=fcc69890f00d8acf9575465625e858e8 280w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?w=560\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=fc6f57302e05ef46cef32dc632e6e46d 560w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?w=840\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=dd71dba3c404b67642cd7b8111e1d616 840w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?w=1100\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=73e4584a9e9c12645873f22223c01195 1100w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?w=1650\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=ebf2c75ec743fe80fd59d040f4ffd019 1650w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/5d83dd34d454453a9139.png?w=2500\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=c23953d2da81ff44916a493123ee5d2d 2500w`})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`All curves must start and end with zero.`})}),`\n`,_jsx(_components.p,{children:`Here’s the difference between auto and semi curves:`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Auto curve`,id:`auto-curve`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=62b9c2b08dd6077c58725ab6997935ae`,alt:`Example automatic-fire recoil curve`,width:563,\"data-og-width\":`757`,\"data-og-height\":`539`,\"data-path\":`images/cas/4b8677ee01eb5e5347a4.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?w=280\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=fcf233ea464d630d6f9f6b746736de66 280w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?w=560\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=7612d7cfda8b12160f0b1969a2bf7c32 560w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?w=840\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=8e08281b8001b6bcb9bfb7e33c24c995 840w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?w=1100\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=ac8259c402bf503a62800265c7053c46 1100w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?w=1650\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=63317a3690c9ee13a0fd07f0c45736d7 1650w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/4b8677ee01eb5e5347a4.png?w=2500\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=3537b5df684948b9b602b0033514d524 2500w`})}),_jsx(Tab,{title:`Semi curve`,id:`semi-curve`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=d4d771d364e2dbb74287a529489513b3`,alt:`Example semi-fire recoil curve`,width:562,\"data-og-width\":`749`,\"data-og-height\":`541`,\"data-path\":`images/cas/2f5c6711270652c5a543.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?w=280\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=25734915de6470f827ca23a47f87433f 280w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?w=560\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=842b57a5b2d3139ad29f944155ca4a1c 560w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?w=840\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=cfc780b1197ee0db47f0cf8d29272f42 840w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?w=1100\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=8c38f8301174902e74f505eaf406e982 1100w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?w=1650\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=d018d3bdec275f978a3d52ee9bf525ff 1650w, https://mintcdn.com/kinemation/JeFzhKqzivzKAwnI/images/cas/2f5c6711270652c5a543.png?w=2500\u0026fit=max\u0026auto=format\u0026n=JeFzhKqzivzKAwnI\u0026q=85\u0026s=6b82b20443d404bcfa3c6480f7c2eaf9 2500w`})})]}),`\n`,_jsx(_components.p,{children:`Curves are almost identical. The only difference is that the Auto curve value is very close to zero at some point. This point is the delay between shots.`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`For example, a fire rate of 600 RPM has a delay of 0.1 seconds between shots. All auto curves must be close to 0 at 0.1 seconds.`}),`\n`]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`When auto or burst mode is enabled, the curve length is set to the fire delay. The auto or burst curve is cropped to the delay between shots.`})}),`\n`,_jsx(Heading,{level:`2`,id:`apply-recoil-animation`,children:`Apply recoil animation`}),`\n`,_jsxs(_components.p,{children:[`Add the Recoil Animation component to the character’s prefab and apply the changes. Then, add a `,_jsx(_components.strong,{children:`Modify Bone`}),` modifier to the Procedural Animation settings and bind the recoil `,_jsx(_components.code,{children:`OutRot`}),` and `,_jsx(_components.code,{children:`OutLoc`}),` values:`]}),`\n`,_jsx(Frame,{caption:`Modify Bone and Recoil Animation.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=4dc32d48848714826f68b677474bf62e`,alt:`Modify Bone modifier bound to Recoil Animation outputs`,width:390,\"data-og-width\":`520`,\"data-og-height\":`261`,\"data-path\":`images/cas/a3c41e928685ba0cf560.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?w=280\u0026fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=23b3b80af55412f191885e5d5c026d60 280w, https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?w=560\u0026fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=c23cd6375f6c3ff75dbfaeb8a12ace6c 560w, https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?w=840\u0026fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=065c1086c0367efebd89e90f4bcc4920 840w, https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?w=1100\u0026fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=9cb04ad4fb964e344e4358f502623aff 1100w, https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?w=1650\u0026fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=e50f40ee93ea27133ce5cfee7f7c69f3 1650w, https://mintcdn.com/kinemation/zfSCxGML5W5QOyC1/images/cas/a3c41e928685ba0cf560.png?w=2500\u0026fit=max\u0026auto=format\u0026n=zfSCxGML5W5QOyC1\u0026q=85\u0026s=b2f57ba4ccffe7a8c3b335cb40130143 2500w`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"🔫Recoil Animation","sidebarTitle":"🔫Recoil Animation","description":"In this section you will learn how to work with recoil .","href":"/cas/fps/recoil-animation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Recoil Animation component","slug":"recoil-animation-component","depth":2,"children":[]},{"title":"Recoil Anim Data","slug":"recoil-anim-data","depth":2,"children":[]},{"title":"Recoil curves","slug":"recoil-curves","depth":2,"children":[]},{"title":"Apply recoil animation","slug":"apply-recoil-animation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kinemation","siteName":"Kinemation","title":"🔫Recoil Animation - Kinemation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-30T09:15:02.420Z","originalFileLocation":"cas/fps/recoil-animation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"In this section you will learn how to work with recoil .\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kinemation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"🔫Recoil Animation - Kinemation\">\u003cmeta data-mint-head property=\"og:description\" content=\"In this section you will learn how to work with recoil .\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kinemation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kinemation.xyz/cas/fps/recoil-animation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kinemation.mintlify.site/_mintlify/api/og/v2?division=FPS+add-on\u0026amp;title=%F0%9F%94%ABRecoil+Animation\u0026amp;description=In+this+section+you+will+learn+how+to+work+with+recoil+.\u0026amp;theme=afc07206c47a13b4e7b57251\u0026amp;signature=1c8fab7e8898227aae6bea6dd1acc7032f85d8831f33a758112e8dcd05196c68\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"🔫Recoil Animation - Kinemation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"In this section you will learn how to work with recoil .\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kinemation.mintlify.site/_mintlify/api/og/v2?division=FPS+add-on\u0026amp;title=%F0%9F%94%ABRecoil+Animation\u0026amp;description=In+this+section+you+will+learn+how+to+work+with+recoil+.\u0026amp;theme=afc07206c47a13b4e7b57251\u0026amp;signature=1c8fab7e8898227aae6bea6dd1acc7032f85d8831f33a758112e8dcd05196c68\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kinemation/gXWNzvMHcmAcDlK_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kinemation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6B4FE8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kinemation.xyz/cas/fps/recoil-animation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cas/fps/recoil-animation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kinemation.xyz/#organization\",\"name\":\"Kinemation\",\"url\":\"https://docs.kinemation.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kinemation/Oe4SC8lqotg2knLA/images/Kinemation_Logo_Circle.svg?fit=max\u0026auto=format\u0026n=Oe4SC8lqotg2knLA\u0026q=85\u0026s=6a2a2b50270f33282685e0eeb7466c37\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kinemation.xyz#website\",\"name\":\"Kinemation\",\"url\":\"https://docs.kinemation.xyz\",\"publisher\":{\"@id\":\"https://docs.kinemation.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation#webpage\",\"url\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation\",\"name\":\"🔫Recoil Animation\",\"description\":\"In this section you will learn how to work with recoil .\",\"dateModified\":\"2026-08-30T09:15:02.420Z\",\"isPartOf\":{\"@id\":\"https://docs.kinemation.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FPS add-on\",\"item\":\"https://docs.kinemation.xyz/cas/fps/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"🔫Recoil Animation\",\"item\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation#article\",\"headline\":\"🔫Recoil Animation\",\"name\":\"🔫Recoil Animation\",\"description\":\"In this section you will learn how to work with recoil .\",\"url\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kinemation.xyz/cas/fps/recoil-animation#webpage\"},\"dateModified\":\"2026-08-30T09:15:02.420Z\",\"publisher\":{\"@id\":\"https://docs.kinemation.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kinemation.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kinemation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kinemation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cas/fps/recoil-animation.md","siteName":"Kinemation","nav":{"global":null,"products":[{"product":"Character Animation System","pages":[{"title":"👋Welcome","sidebarTitle":"👋Welcome","href":"/cas/welcome"},{"group":"Get started","pages":[{"group":"🌌Introduction to CAS","root":{"title":"📖Overview","sidebarTitle":"📖Overview","href":"/cas/quickstart/introduction-to-cas"},"pages":[{"title":"⤵️Install Demo Content","sidebarTitle":"⤵️Install Demo Content","href":"/cas/quickstart/install-demo-content"},{"title":"🗒️Easy Character Setup","sidebarTitle":"🗒️Easy Character Setup","href":"/cas/quickstart/easy-character-setup"},{"title":"⏭️After Setup","sidebarTitle":"⏭️After Setup","href":"/cas/quickstart/after-setup"},{"title":"🏃♂️Blending and Animations","sidebarTitle":"🏃♂️Blending and Animations","href":"/cas/quickstart/blending-and-animations"},{"title":"🦾Procedural","sidebarTitle":"🦾Procedural","href":"/cas/quickstart/procedural"},{"title":"⛰️Parkour and Interactions","sidebarTitle":"⛰️Parkour and Interactions","href":"/cas/quickstart/parkour-and-interactions"},{"title":"Video tutorials","href":"/cas/quickstart/video-tutorials"}]},{"group":"🛠️Troubleshooting","pages":[{"title":"❔Animation Not Playing","sidebarTitle":"❔Animation Not Playing","href":"/cas/quickstart/troubleshooting/animation-not-playing"},{"title":"❔First-Person Camera","sidebarTitle":"❔First-Person Camera","href":"/cas/quickstart/troubleshooting/first-person-camera"}]},{"group":"📒Changelog","hidden":true,"pages":[{"title":"Changelog","sidebarTitle":"Overview","href":"/cas/quickstart/changelog"},{"title":"1.4.0 Update","sidebarTitle":"1.4.0 Update","href":"/cas/quickstart/changelog/1.4.0-update"}]}]},{"group":"Tutorials","pages":[{"title":"CAS with Unity 2022","sidebarTitle":"CAS with Unity 2022","href":"/cas/guides/cas-with-unity-2022"},{"title":"⚙️Manual Setup","sidebarTitle":"⚙️Manual Setup","href":"/cas/guides/manual-setup"},{"title":"🏃♂️How to set up a character","sidebarTitle":"🏃♂️How to set up a character","href":"/cas/guides/manual-setup/how-to-set-up-a-character"},{"title":"⚡How to set up procedural animation","sidebarTitle":"⚡How to set up procedural animation","href":"/cas/guides/manual-setup/how-to-set-up-procedural-animation"}]},{"group":"Integrations","pages":[{"group":"🔌FPS Animation Pack","pages":[{"title":"🔹Overview","sidebarTitle":"🔹Overview","href":"/cas/guides/integrations"},{"title":"🔹Player Prefab","sidebarTitle":"🔹Player Prefab","href":"/cas/guides/integrations/player-prefab"},{"title":"🔹Weapons","sidebarTitle":"🔹Weapons","href":"/cas/guides/integrations/weapons"},{"title":"🔹Camera","sidebarTitle":"🔹Camera","href":"/cas/guides/integrations/camera"},{"group":"Animation","pages":[{"title":"🔸Animation","sidebarTitle":"🔸Animation","href":"/cas/guides/integrations/animation"},{"title":"🔸Locomotion","sidebarTitle":"🔸Locomotion","href":"/cas/guides/integrations/animation/locomotion"},{"title":"🔸Procedural","sidebarTitle":"🔸Procedural","href":"/cas/guides/integrations/animation/procedural"},{"title":"🔸Weapon Actions","sidebarTitle":"🔸Weapon Actions","href":"/cas/guides/integrations/animation/weapon-actions"},{"title":"🔸Locomotion","sidebarTitle":"🔸Locomotion","href":"/cas/guides/integrations/locomotion"}]}]}]},{"group":"Core systems","pages":[{"title":"🔹Architecture","sidebarTitle":"🔹Architecture","href":"/cas/core/architecture"},{"title":"🔸Character Animation Component","sidebarTitle":"🔸Character Animation Component","href":"/cas/core/character-animation-component"},{"title":"🔹Character Skeleton","sidebarTitle":"🔹Character Skeleton","href":"/cas/core/character-skeleton"},{"title":"🔸Animation Asset","sidebarTitle":"🔸Animation Asset","href":"/cas/core/animation-asset"},{"title":"🔸Layered Blending","sidebarTitle":"🔸Layered Blending","href":"/cas/core/layered-blending"},{"title":"🔸Procedural Animation","sidebarTitle":"🔸Procedural Animation","href":"/cas/core/procedural-animation"},{"group":"Modifiers","root":{"title":"🔸Animation Modifiers","sidebarTitle":"🔸Animation Modifiers","href":"/cas/modifiers/overview"},"pages":[{"title":"◻️Copy Bone","sidebarTitle":"◻️Copy Bone","href":"/cas/modifiers/copy-bone"},{"title":"◻️Aim At","sidebarTitle":"◻️Aim At","href":"/cas/modifiers/aim-at"},{"title":"◻️Foot IK","sidebarTitle":"◻️Foot IK","href":"/cas/modifiers/foot-ik"},{"title":"◻️Full-body IK","sidebarTitle":"◻️Full-body IK","href":"/cas/modifiers/full-body-ik"},{"title":"◻️Look Modifier","sidebarTitle":"◻️Look Modifier","href":"/cas/modifiers/look-modifier"},{"title":"◻️Modify Bone","sidebarTitle":"◻️Modify Bone","href":"/cas/modifiers/modify-bone"},{"title":"◻️Modify Bone Chain","sidebarTitle":"◻️Modify Bone Chain","href":"/cas/modifiers/modify-bone-chain"},{"title":"◻️Pivot Modifier","sidebarTitle":"◻️Pivot Modifier","href":"/cas/modifiers/pivot-modifier"},{"title":"◽Stabilize Bone","sidebarTitle":"◽Stabilize Bone","href":"/cas/modifiers/stabilize-bone"},{"title":"◻️Step Modifier","sidebarTitle":"◻️Step Modifier","href":"/cas/modifiers/step-modifier"},{"title":"◻️Stride Modifier","sidebarTitle":"◻️Stride Modifier","href":"/cas/modifiers/stride-modifier"},{"title":"◻️Two Bone IK","sidebarTitle":"◻️Two Bone IK","href":"/cas/modifiers/two-bone-ik"}]},{"title":"🔸Dynamic Bones","sidebarTitle":"🔸Dynamic Bones","href":"/cas/modifiers/dynamic-bones"},{"title":"🔹Property Bindings","sidebarTitle":"🔹Property Bindings","href":"/cas/core/property-bindings"},{"title":"🔹Example Content","sidebarTitle":"🔹Example Content","href":"/cas/core/example-content"},{"title":"🔹Example Controller","sidebarTitle":"🔹Example Controller","href":"/cas/core/example-content/example-controller"},{"title":"🔹Items","sidebarTitle":"🔹Items","href":"/cas/core/example-content/items"},{"title":"🔸Animations","sidebarTitle":"🔸Animations","href":"/cas/core/example-content/animations"},{"title":"🔹Character Camera","sidebarTitle":"🔹Character Camera","href":"/cas/guides/character-camera"},{"title":"🔸Simple Animation Player","sidebarTitle":"🔸Simple Animation Player","href":"/cas/guides/simple-animation-player"},{"title":"🔸State Behaviours","sidebarTitle":"🔸State Behaviours","href":"/cas/modifiers/state-behaviours"}]},{"group":"FPS add-on","pages":[{"title":"🔹Quickstart","sidebarTitle":"🔹Quickstart","href":"/cas/fps/overview"},{"title":"FPSAF to CAS guide","sidebarTitle":"Migration guide","hidden":true,"href":"/cas/fps/fpsaf-to-cas-guide"},{"title":"⤵️FPS Demo Content","sidebarTitle":"⤵️FPS Demo Content","href":"/cas/fps/fps-demo-content"},{"title":"🗒️FPS Setup","sidebarTitle":"🗒️FPS Setup","href":"/cas/fps/fps-setup"},{"title":"🦾Skeleton \u0026 IK","sidebarTitle":"🦾Skeleton \u0026 IK","href":"/cas/fps/skeleton-and-ik"},{"title":"🔶Procedural Animation Setup","sidebarTitle":"🔶Procedural Animation Setup","href":"/cas/fps/procedural-animation-setup"},{"title":"🔫Adding a Weapon","sidebarTitle":"🔫Adding a Weapon","description":"This page explains how to add a weapon with the FPS Addon.","href":"/cas/fps/adding-a-weapon"},{"title":"🔫Recoil Animation","sidebarTitle":"🔫Recoil Animation","href":"/cas/fps/recoil-animation"},{"group":"Modifiers","pages":[{"title":"FPS modifiers","description":"Learn about the custom modifiers included with the FPS Addon.","sidebarTitle":"Overview","href":"/cas/fps/modifiers"},{"title":"◻️Ads Modifier","sidebarTitle":"◻️Ads Modifier","href":"/cas/fps/modifiers/ads-modifier"},{"title":"◻️Attach Hand","sidebarTitle":"◻️Attach Hand","href":"/cas/fps/modifiers/attach-hand"},{"title":"◻️FPS Copy Bones","sidebarTitle":"◻️FPS Copy Bones","href":"/cas/fps/modifiers/fps-copy-bones"},{"title":"◻️FPS Offset","sidebarTitle":"◻️FPS Offset","href":"/cas/fps/modifiers/fps-offset"},{"title":"◻️IK Motions","sidebarTitle":"◻️IK Motions","href":"/cas/fps/modifiers/ik-motions"},{"title":"◻️Sway Modifier","sidebarTitle":"◻️Sway Modifier","href":"/cas/fps/modifiers/sway-modifier"},{"title":"◻️Weapon Collision","sidebarTitle":"◻️Weapon Collision","href":"/cas/fps/modifiers/weapon-collision"}]}]}]},{"product":"Motion Warping","pages":[{"title":"Motion Warping","href":"/mw/welcome"}]},{"product":"Retarget Pro","pages":[{"title":"Retarget Pro","href":"/retarget-pro/welcome"}]},{"product":"Tactical Shooter Pack","pages":[{"title":"Tactical Shooter Pack","href":"/tactical-shooter-pack/unreal/welcome"}]},{"product":"FPS Animation Pack","pages":[{"title":"FPS Animation Pack","href":"/fps-animation-pack/unreal/welcome"}]},{"product":"PRAS","pages":[{"title":"PRAS","href":"/pras/welcome"}]},{"product":"Magic Blend","pages":[{"title":"Magic Blend","href":"/magic-blend/readme"}]},{"product":"Scriptable Animation System","pages":[{"title":"Scriptable Animation System","href":"/scriptable-animation-system/welcome"}]},{"product":"Sci-Fi FPS Pack","pages":[{"title":"Sci-Fi FPS Pack","href":"/sci-fi-fps-pack/welcome"}]},{"product":"Survival Pack","pages":[{"title":"Survival Pack","href":"/survival-pack/welcome"}]}]},"basePath":"","title":"🔫Recoil Animation - Kinemation","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-C3K8Ee1b.js","DynamicMarkdown-DgKZ4_wp.js","zoom-image-lightbox-hkb03gBi.js","lightbox-handle-r17bVUz3.js"]}