Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Still Having Problems With Opening Cabinets
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: Still Having Problems With Opening Cabinets

When you use AddPropForce it applies the force to the entire object as a whole. The cabinet is static aside from the doors, so using AddPropForce won't work the way you want. Instead, you'll want to use these two functions. Instead of applying the force to the whole prop, it applies it to specific bodies, in this case the two cabinet doors.

PHP Code: (Select All)
AddBodyImpulse("cabinet_nice_1_Body_1"fXfYfZ"World");
AddBodyImpulse("cabinet_nice_1_Body_2"fXfYfZ"World"); 

As usual, make sure you tweak the X, Y and Z forces until the cabinet doors open the way you want them to.

02-07-2012, 07:18 AM
Find


Messages In This Thread
RE: Still Having Problems With Opening Cabinets - by palistov - 02-07-2012, 07:18 AM



Users browsing this thread: 1 Guest(s)