Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
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;
- }
- }
- }
|