I was wondering if there is any kind of typecasting inside of Alice?
I came across the need to use setOpacity on an object returned by the e.getModels() function of the collision event listener.
Maybe I am missing something here, but all I could achieve was to iterate over the models using the SMovableTurnable type (which allowed me to transform the objects but not anything else).
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?