Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add smartFriendlyCritter, demonstrating continuous pathfinding #5

Open
wants to merge 3 commits into
base: master
from

Conversation

@AndyTechGuy
Copy link

commented Aug 6, 2019

Requires Terasology/Behaviors#22 !

Contains

A new deer character, smartFriendlyCritter. This critter follows the character much like friendlyCritter, but this critter uses pathfinding to do it, avoiding obstacles and pitfalls in it's path. As well, this critter follows the character from up to 500 blocks away!

This character serves to demonstrate & test the continuous pathfinding abilities of Terasology/Pathfinding.

@msteiger
Copy link
Member

left a comment

Looks good to me!

import org.terasology.pathfinding.model.Path;

/**
* Essential setup for a character to travel along a determined path. This is exported from {@link MoveAlongPathNode#construct(Actor)}, which allows for characters to

This comment has been minimized.

Copy link
@msteiger

msteiger Aug 9, 2019

Member

Just a comment: I try to stick to max. 120 chars per line, if possible, so I don't have to scroll horizontally. GitHub shows 130 chars, eclipse uses 120 by default afaik. Especially for block comments it should be easy to do, but it's a matter of personal preference, I guess.

This comment has been minimized.

Copy link
@AndyTechGuy

AndyTechGuy Aug 10, 2019

Author

I transferred these nodes to Terasology/Behaviors#22, and I wrapped the comments to less than 120 characters. I've added a line guide to IDEA so all lines will be less than 120 characters in the future 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.