Using SetActorVelocity to launch an actor accurately?

Archive of the old editing forum
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.
Locked
Sarcose
Posts: 17
Joined: Wed Oct 24, 2012 12:51 am

Using SetActorVelocity to launch an actor accurately?

Post by Sarcose »

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?
Locked

Return to “Editing (Archive)”