So, in the next version of OBSP, I will use actual force for damage instead of a simple "You've died" message. This means I need to move a vessel away from the explosion, perfectly outward.
My first thought for doing this is to use GetRelativePos to get the position in vector3, and then reverse it by multiplying x,y and z all by -1, and then multiplying that by the force of the explosion - this would give me the vector that I will call in AddForce() each timestep.
My other question is, how should I work out the "r" parameter in AddForce()? should that just be getrelativepos?
I hope my question made sense, and thanks for the help.
My first thought for doing this is to use GetRelativePos to get the position in vector3, and then reverse it by multiplying x,y and z all by -1, and then multiplying that by the force of the explosion - this would give me the vector that I will call in AddForce() each timestep.
My other question is, how should I work out the "r" parameter in AddForce()? should that just be getrelativepos?
I hope my question made sense, and thanks for the help.
