A problem with PHYSICS_Trail

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

RestInPieces

New Member
Sep 20, 2001
65
0
0
www.Creep-World.net
I've go a problem with Physics, here is some of my code:

RadiusEffectRotation.Pitch += 16384;
RadiusEffect = Spawn(class'RingExplosion3',
Owner,,,RadiusEffectRotation);

it worked fine

this spawns a Ringexplosion, which is pitched, so that the player is in the center of this explosion. I want him to always be in the center of the explosion, so this is what i also coded:

RadiusEffect.bTrailerSameRotation=false;
RadiusEffect.SetPhysics(PHYS_Trailer);

but the RadiusEffect.Rotation.Pitch will be 0 , at least that's what it looks like.
Why doesnt it work now?
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
Maybe you should use DesiredRotation or you subclass the RingExplosion and put
Code:
SetLocation(Owner.Location);
in its Tick() function along with Physics = PHYS_None.
 
Last edited:

RestInPieces

New Member
Sep 20, 2001
65
0
0
www.Creep-World.net
This is what i had before, but i thought the solution with Physics would be better. I watched the whole thing from 3rd person view, and i saw something very interesting: as soon as the player stands still, the ringexplosion is pitched, as soon as he starts to move, it will "stand up".