Unity3d Parkour Wallrun
Options
Comments
-
Hi JakobxRasmussen.
I believe you will get good answer faster on Unity engine forum. This forum more about network code.0 -
I have tried there, and I didn't get any replies at all!
It is really hard, at least I find it hard! To do the wall run part! So I asked here after Unity3d engine forum.0 -
Some semi pseudo code:
Animator PlayerAnimator;
Awake()
{
CharacterController controller = GetComponent();
PlayerAnimator = GetComponent();
}
update()
{
if (controller.collisionFlags == CollisionFlags.Sides && !controller.grounded)
{
PlayerAnimator.SetBool("IsWallRunning",True);
}
else PlayerAnimator.SetBool("IsWallRunning",False);
}
Then you need to get into mecanim and setup a parameter and put it as a condition to the animation to be triggered. To get to this, you need to make a transition between the animation when your character is "in air" and the "wallrun" animation, click on that arrow. There's the condition field.
edit: Oh, Christoph ported the whole entries of the old forum >< Sorry, didn't read the last post date...maybe it's helpful anyways.
edit2: Hey, at least I got a badge out of it o.00