Announcement

Collapse
No announcement yet.

Prismatic Actor

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

    Prismatic Actor

    Hi to all.

    I wanna make shaky platform like this.


    But i don't know how....I created RigidBody Mesh and added Physics Material with low Density
    then Prismatic Actor with limited X and angle of twist...

    but platform moves only when i shoot with weapon, but not staying up
    And how i can lock in center of bottom block?


    Thanks

    #2
    When i turned bPushesRigidBodies on, then the platform was responding on my pawn, but when i step up on it, my pawn begins jumping always(really sick)

    What can i do?

    Comment


      #3
      *bump* *bump*

      Comment


        #4
        Anybody knows how i can do this? Thanks

        Comment


          #5
          Ok i found the solution.

          It explains how constraints the KActor

          http://www.nickurko.com/udk-physics-platforms.html

          And this is the code of KActor that helps to swing the seesaw if your player is Pawn:

          Code:
          class Seesaw extends Kactor
                  placeable;
          
          event Tick(float DeltaTime)
          {
              local Actor traced;
          
              Foreach CollidingActors(class'Actor', traced, 500)
              {
                      if( Pawn(traced)!=None){
                          ApplyImpulse(vect(0,0,-10), 30, traced.Location);
                      }
              }
          }
          
          defaultproperties
          {
          	bWakeOnLevelStart=True
          	bPawnCanBaseOn=True
          	bNoEncroachCheck=False
                  bSafeBaseIfAsleep=False
          }

          Comment

          Working...
          X