Its very simple, i am wanting to make a cannon fire the players to a certain position. I havent tried the Moveto function before so this is my first experience with it Keys in the Costs table should be string names representing Material names, for example Water for is not a valid member of Humanoid “” All materials have a default cost of 1 and any material can be defined as non-traversable by setting its value to math.huge. When working with Terrain and BasePart materials, you can include a Costs table within CreatePath() to make certain materials more traversable than others. To optimize pathfinding even further, you can implement pathfinding modifiers to compute smarter paths across various materials, around defined regions, or through obstacles. This looks unnatural in some situations - for instance, a path may go through water rather than over a nearby bridge simply because the path through water is geometrically shorter. Pathfinding Modifiersīy default, Path:ComputeAsync() returns the shortest path between the starting point and destination, with the exception that it attempts to avoid jumps. Currently, Models containing a Humanoid instance, including typical player characters, will not be considered for path computation or path blockage, although the agent may still be blocked by those models physically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |