JumpLinkBuilderConfig.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. namespace DotRecast.Detour.Extras.Jumplink
  2. {
  3. public class JumpLinkBuilderConfig
  4. {
  5. public readonly float cellSize;
  6. public readonly float cellHeight;
  7. public readonly float agentClimb;
  8. public readonly float agentRadius;
  9. public readonly float groundTolerance;
  10. public readonly float agentHeight;
  11. public readonly float startDistance;
  12. public readonly float endDistance;
  13. public readonly float jumpHeight;
  14. public readonly float minHeight;
  15. public readonly float heightRange;
  16. public JumpLinkBuilderConfig(float cellSize, float cellHeight, float agentRadius, float agentHeight,
  17. float agentClimb, float groundTolerance, float startDistance, float endDistance, float minHeight,
  18. float maxHeight, float jumpHeight)
  19. {
  20. this.cellSize = cellSize;
  21. this.cellHeight = cellHeight;
  22. this.agentRadius = agentRadius;
  23. this.agentClimb = agentClimb;
  24. this.groundTolerance = groundTolerance;
  25. this.agentHeight = agentHeight;
  26. this.startDistance = startDistance;
  27. this.endDistance = endDistance;
  28. this.minHeight = minHeight;
  29. heightRange = maxHeight - minHeight;
  30. this.jumpHeight = jumpHeight;
  31. }
  32. }
  33. }