11-08-2022, 02:27 PM
Hi,
Has there been any change on this issue in the past 9 years?
I'm trying to build a game in which one object (wolf) chases a few targets. The "CollisionStarted" event returns as parameters the objects that collided, but they are SThing, and I would like to cast them down to "Coyote" so I can get the item that was hit to do something.
The only option I found was to to run comparison between the parameter and each one of the targets. There must a be a better way than that, right?
|