Using SetActorVelocity to launch an actor accurately?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Using SetActorVelocity to launch an actor accurately?
I've been combing the net for hours and, I know this is probably basic trigonometry, but my eyes keep glazing over. What I'm attempting to do here is to launch an actor so that it "jumps" and lands at its target. I've figured out how to get the angle needed but I'm unsure how to break that angle down into its x, y, and z velocity components. As in, since SetActorVelocity uses xvel, yvel, and zvel for movement, I'd need a combination of x and y movement with z movement to "create" the angle. Would anyone be able to help me out?