onReachTargetObservable missing from ICrowd

Why isn’t onReachTargetObservable included in ICrowd?

I think it’s for @Cedric but he is off for a couple of days, so be patient.

makes sense to me, if you looked at the source code idk, but ICrowd is an interface to a data structure, whereas RecastJSCrowd is the implementing plugin with runtime specific stuff. Whatever you’re trying to type, you can likely replace ICrowd with RecastJSCrowd, which has the onReachTargetObservable.

3 Likes

yeah, I looked at the source as well, which prompted me to ask the question.

what @jeremy-coleman said :slight_smile:

I realize the workaround, but not having it in the interface might be confusing to some users?

1 Like

I disagree with that. A data structure CAN BE an interface, but an interface is usually more than a data structure.

I use to check code source directly in my IDE, and i didn’t notice this useful method. Moreover, in typescript, using the RecastJSCrowd class do a difference : it does not compile anymore. I will create another post for that.

@Cedric