Closed Jaraxxus-Me closed 2 months ago
i see what you mean. I think in the original satellites environment, we deliberately didn't check for this kind of occlusion. However, it is certainly more reasonable to do something like this. Feel free to make this modification in the new subclass environment you're proposing to make, but leave the original Satellites
environment alone so that previous results are unchanged.
Sure, will submit a PR late this week!
Hi, (sorry for bugging again) For the "Sees" predicate, you calculate the perpendicular distance to determine if an entity may occlude the satellite's sight. As implemented here. However, I think we also need to check the cross-product to additionally make sure the entity lies "between" the satellite and object, e.g., use the following code:
Otherwise, there could be some cases (e.g., ent is on the line of sat-obj, but not between them) wrongly ground "Sees". Correct me if I'm wrong, I'm happy to submit a pr for this.