How to make actor repel away when collide.

Hi, I'm really stuck in & would be very grateful if someone more experienced & knowledge could advise. There are 3 actors for this problem & I'll address them as 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. Downloaded 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. This can only be done on the instances actor in the scene & not in prototype.

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 & not in prototype.

During preview, when both Player A & B collide with Car, Player B will fly much further away than Player A.

I know this is very lengthy but I hope this description helps to give a better picture & understanding.

https://www.dropbox.com/s/ka2m8vccftyx03e/Swing Knight 2.zip
Pls help. Appreciate & Thank you.

Sign In or Register to comment.