Disabling Physics temporarily?

So I have a physics based puzzle game that I'm working on, and after getting the physics working somewhat, and getting the Drag and Drop to work I ran into a little problem.

I want the player to be able to move certain items around and drag and drop and assemble the puzzle as they see fit before the game starts. However, The physics are still in play while the player is able to drag and drop which I don't want.

So sometimes currently, when I try and move a rail, and bump something else it will start spinning around and things like that.

Is there any way to allow the player to drag and drop things, without them being affected by Physics until the player starts the puzzle?

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Would something as simple as disabling collision when the actor is touched work?
  • HexxissHexxiss Member Posts: 12
    edited November 2012
    That could work! Is there any way to give an actor a Fixed rotation, but only when it's touched?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'd create a local attribute called rotate or something

    Then when actor touched set self.rotate to self.rotation
    And constrain self.rotation to self.rotate
Sign In or Register to comment.