| 12-21-2006, 05:54 AM | #1 |
How can I get a proper rebound angle off of two objects colliding. Say a unit rolls into a rock (PATHING_TYPE_WALKABILITY, is what I'm detecting) and I want it to properly rebound. I know that if I take the angle from the rock to the unit and apply that vector to the vector of the unit's movement/direction I can get the desired effect. However, how can I get the center of the rock or unpathable object that my unit collides with? |
| 12-21-2006, 02:22 PM | #2 |
If the object was a destructable, you are able to get its X/Y coordinates with the GetDestructableX/Y functions. I don't think that's possible with non-destructable doodads so you'd have to figure something out. |
| 12-21-2006, 02:38 PM | #3 |
Which is why I posted this thread.. but okay. |
| 12-21-2006, 07:50 PM | #4 |
You can always use units instead of doodads. |
