Announcement

Collapse
No announcement yet.

Physics Volume Direction?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Physics Volume Direction?

    Right now I'm trying to make a prefab sort of spawn room. Long story short I have a room with a door that triggers open and a physics volume that forces the spawned player out. This prevents other players from getting in the room as well, not that it's a huge concern since the room is only open for a split second.

    So since I use physics volumes I have to set the direction in the properties, the xyz direction. This means that if I rotate the spawn room I have to reset the force direction. This won't work for a prefab cause I can't easily (if at all) change the individual elements of it.

    So what I'm asking is... can I create something similar to a physics volume that will always push "outwards" depending on how I place it. I looked into thrusters or impulses but those don't seem to affect pawns. Suggestions?

    #2
    If i understood you well, you could make the prefabs without the volume and add it separately. It's not hard to set up the physics volume the right direction.

    Comment


      #3
      At that point I feel that just duplicating would suffice. Setting up the push direction is a bit tedious and that's mostly the part I wish I could automate. Due to the nature of our map, I may be placing up to a 100 of these.

      Comment


        #4
        you could always write your own volume where your rotation changes the direction, should be trivial to do.

        Code:
        class YourPhysicsVolume extends PhysicsVolume;
        
        simulated function PostBeginPlay()
        {
        super.PostBeginPlay();
        ZoneVelocity = Default.ZoneVelocity >> Rotation;
        }

        Comment

        Working...
        X