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

Sign In or Register to comment.