Physics Based Platform

Discussion in 'Buildbox General Discussion' started by sharma.shivam, Dec 20, 2016.

Tags:
  1. sharma.shivam

    sharma.shivam Avid Boxer

    Joined:
    Oct 23, 2016
    Messages:
    180
    Likes Received:
    10
    hi,i am new to buildbox and experimenting with it,i have a question,
    how can we create a platform that can rotate exactly 90 degrees only once when a character hits/collides with it??
     
  2. jerry

    jerry Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    421
    Likes Received:
    232
    For Platform:
    1. Add a "Wakeup" modifier on the platform.
    2. Set Wakeup to "Collision" - this will allow the player to start the platform turn when he touches the platform
    3. Set the Platforms Angular velocity to 50 and 0 or whatever number that works for you/direction

    Transform Logic:
    1. Add a "Transform" logic piece to the scene that the platform will touch once it is at the 90 degree angle.
    2. On the logic piece - set the Angular velocity to 0
    3. Set the Affected Asset(the platform you want it to stop the turn)
    4. Set the Affect Operation as "Replace"

    That should get you what you need.
     
    sharma.shivam likes this.
  3. sharma.shivam

    sharma.shivam Avid Boxer

    Joined:
    Oct 23, 2016
    Messages:
    180
    Likes Received:
    10
    hi,thanks for the reply,it worked :D
     
    jerry likes this.

Share This Page