Hey there. I´m using the gameUI and objects interact with each other in zeroG when i move them, But how can i make something like TNT? An exlposion that interact with my “space-crate” and boost the crate in the right direction?
Thanks for help!
Hey there. I´m using the gameUI and objects interact with each other in zeroG when i move them, But how can i make something like TNT? An exlposion that interact with my “space-crate” and boost the crate in the right direction?
Thanks for help!
I’m not sure what you mean by “the gameUI” and I’m assuming you’re using physics. If you have a list of objects you can loop over them, compute their distance and angle from the center of the explosion and apply an object:addLinearImpulse() to the object in the opposite direction from the center of the explosion.
Rob
I’m not sure what you mean by “the gameUI” and I’m assuming you’re using physics. If you have a list of objects you can loop over them, compute their distance and angle from the center of the explosion and apply an object:addLinearImpulse() to the object in the opposite direction from the center of the explosion.
Rob