How to make actor bounce away when collide. Something like a car accident.
Hi, there are 3 actors for this problem I'm trying to describe. Player A, Player B & Car.
I'm trying to make player A repel away when collide with Car.
There are other commands in this Player A to enable it to swing around from gshelper swing knight template.
I tried to use a boon lean attribute for Player A. When false, constrain its X & Y to Post.(The thing that Player A swing to.) When Player A collide with Car change attribute to true & change its motion linear velocity X to the Car's motion linear velocity X*2 & its motion linear velocity Y to the car's X.
Player B is created to make comparision with Player A & only has commands when collides with car, change its motion linear velocity X to the Car's motion linear velocity X*2 & its motion linear velocity Y to the car's X. This can only be done on the instances actor in the scene.
During preview, when both Player A & B collide with Car, Player B will fly further away than Player A.
I know this is very lengthy but I'm trying my best to describe for better understanding & not waste precious time of people who sincerely help.
Pls help. Appreciate & Thank you.
Comments
The template for better understanding. Thank you. https://www.dropbox.com/s/ka2m8vccftyx03e/Swing Knight 2.zip
@GSLostsoul you can try increasing their bounciness.
@W.HodgesStudios I need the bounciness to be set at 0 like the compared actor.
I'm currently trying to Apply Max Speed to true as usual & false when collide.
Seems to work, but still trying out to see if there are any bugs.
Really grateful & a little touched for your reply & effort as I've posted 3 discussions & no one replied.
Thank You.
Why does the bounciness need set at 0?