You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- using UnityEngine;
- using System.Collections.Generic;
- using System.Collections;
-
- namespace coa4u
- {
- public class PredicateDistanceLess : Predicate
- {
- protected CalcerVector first;
- protected CalcerVector second;
- protected float distance;
-
- public PredicateDistanceLess(CalcerVector one, CalcerVector other, float dist)
- : base()
- {
- first = one;
- second = other;
- distance = dist;
- }
-
- public override bool check()
- {
- if (Vector3.Distance(first.value, second.value) <= distance)
- return true;
- else
- return false;
- }
- }
- }
|