1、Create a data asset and select TNTClimbDataPDA
2.Specify the newly created climbing data asset in the TNT FLS Component Status PDA
3、Configure the required data in the data asset
Trace Setting
FreeClimbTraceSetting
Enable | Whether to use free climbing |
TraceType | TraceType |
ObjectTypeQuery | ObjectTypeQuery |
TraceTypeQuery | TraceTypeQuery |
LedgeClimbTraceSetting
Enable | Whether to use Ledge Climb |
LedgeTag | LedgeTag |
TraceType | |
ObjectTypeQuery | |
TraceTypeQuery |
FreeClimb
StartClimb
EnableStartMontage | Whether to use montage (If not used, the following are invalid) |
RandomMontage | Apply random montage |
StartClimbHeight | Height of movement during montage |
StartClimbMontage | StartClimbMontage |
MinimumAltitudeLimit | The higher the value, the lower the wall can be filtered out |
ClimbMove
Speed | Climbing speed |
ClimbAngleNegative | Climbing angle limit |
ClimbAngle | |
Idle | Animation sequence of climbing |
Up | |
Down | |
Right | |
Left |
JumpMontage
RandomMontage | Apply random montage |
JumpVelocity | JumpVelocity(The faster the speed, the farther the jump distance) |
Up | JumpMontage |
Down | |
Right | |
Left |
JumpOffMontage
RandomMontage | Apply random montage |
JumpOffVelocity | JumpOffVelocity(The faster the speed, the farther the jump off distance) |
Up | JumpOffMontage |
Down | |
Right | |
Left |
ClimbToTop
RandomMontage | Apply random montage |
ToTopHeight | Distance to top (The higher the value, the earlier you will climb to the top) |
ToTopForward | Distance of moving forward when climbing to the top |
ClimbToTopMontage | ClimbToTopMontage |
4、Set up an animation blueprint
Enter your animation blueprint
Then get the TNTClimbComponent and set the climbing state
Come to the AnimGraph
Create linked Anim Graph,select ABPT_TNT_Climb
Create blend poses by bool to connect and Create a control rig
In the details of control rig,Set control rig class and select TNTClimbIK
Enter the control rig, Select all bones to delete
Then import your own bones
5、Set character blueprint
Set Try ForwardMovementInput and Try RightMovementInput before Movement input
Call the climbing function
StartClimb | The character starts to climb towards the wall |
ClimbJump | Jumping during climbing |
ClimbJumpOff | Jump off during climbing |
6、Add Anim Notify
Notify:
Add Anim Notify for jumpOff:
Trigger this Notify to start moving
Notify State:
Add Anim Notify State for jump:
The starting position is to start moving
Notify the end to complete the jump
Add Anim Notify State for Climbing to top:
Two Notify are required, up and forward
TNT_ANS_ToTopUp is the upward movement
TNT_ANS_ToTopForward is the forward movement
The shorter the Anim Notify State, the faster the movement
7、Start your own climbing system
V2.0 LedgeClimb
1、Come to data assets
TargetHeight | Height and position of characters |
TargetForwardDistance | Distance of the figure facing the wall |
TargetMaxDistance | Maximum distance of climbing target point |
MoveMinLength | MoveMinLength |
MoveJumpLeftRightMinLength | Minimum distance of moving jump |
TurnBackKey | Jump back key |
2、LedgeSearchAnim
Play the animation sequence of looking for Ledge climbing
3、Climbing and jumping in 8 directions
Select which montage to play according to the distance
4、TurnBackMontage
Play the montage of turning and jumping
5、CornerTurn
Play the montage of the inner and outer corners
6、LedgeTopDownAnim
Play an animated montage that jumps over the wall from the top
7、LedgeStartAnim
Play the animation montage of starting Ledge climbing
8、LedgeClimbToTop
RandomMontage | Apply random montage |
ToTopHeight | Distance to top (The higher the value, the earlier you will climb to the top) |
ToTopForward | Distance of moving forward when climbing to the top |
ClimbToTopMontage | ClimbToTopMontage |
9、FallDownStartAnim
Animation played by grabbing the Ledge frame when falling
10、Set Anim Notify
Four animation notification states have been added
1.LedgeDownDown
Notification of downward displacement from top to lower wall
2.DownForward
Forward displacement notification from top to lower wall
3.JumpRotation
Rotate character
StartJump
Start climbing and jumping. The longer the notification status is, the slower the speed is
11、Set climbing points
Actor add tags:Climb
Either of the above two can be filled in
12、Complete