Hi,
I want the AI character can throw a bomb to the position of the player,
In TrajectoryObject i see there are methods to simulate trajectory with the given end position.
I don't need the trajectory so I subclass the ThrowableItem and calculate the m_Velocity before we throw the item so that the item can land on target position.
But in ThrowableItem.ThrowItem(), the m_Velocity was rotated to lookDirection, as far as I understand, if the originator was face the target and the m_Velocity was calculated by given end position, then we shouldn't rotate the m_Velocity again, is that right?
I want the AI character can throw a bomb to the position of the player,
In TrajectoryObject i see there are methods to simulate trajectory with the given end position.
I don't need the trajectory so I subclass the ThrowableItem and calculate the m_Velocity before we throw the item so that the item can land on target position.
But in ThrowableItem.ThrowItem(), the m_Velocity was rotated to lookDirection, as far as I understand, if the originator was face the target and the m_Velocity was calculated by given end position, then we shouldn't rotate the m_Velocity again, is that right?