PathBerserker2d
1.0
Platformer pathfinding solution
|
So, you want to use this asset with Corgi? Lucky for you, this asset includes an integration for Corgi!
NavAgents move using a simple system of direct transform manipulation. This works fine in most cases, but if you where to plop one of these NavAgents in a Corgi environment, you would find it ignoring the environment completly. It won't react to ground friction, or jump pads, or knockback from weapons.
Thats very restricting!
Corgi-integration is all about letting the navagent follow a path using Corgis build-in movement system, for full environment interaction.
The Corgi implementation supports the most common movement options:
Additionally, this asset comes with the following AI actions and decisions to be used with Corgi's build-in AI system.
Actions:
Decisions
Because Corgi uses pseudo physics based movement not everything, that a transform-based agent can do, a Corgi agent can do as well.
Unsupported features and limitations:
Easy, replace the 'TransformBasedMovement' component on your NavAgent with a 'CorgiBasedMovement' component.
'CorgiBasedMovement' requires a normal Corgi character with at least the following components and abilities:
For a working example setup please see the demo level included in the Corgi folder.
Tipp: When using Corgi demo characters, the gameobject the NavAgent is on should be positioned at a characters feet. In Corgi's example characters, the root GameObject is placed some where in the middle of the character. This needs to be adjusted.
Tipp: A Corgi character does not stop instantly, but will deaccelerate over a short period of time. This can lead to agents falling of platforms, if their goal is close to an edge. To enable instant stopping, please enable 'Instant Acceleration' on the 'CharacterHorizontalMovement' component.