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
this could be interesting
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#2
RE: this could be interesting

The function you're looking for is probably AddPropImpulse.

Heres the syntax:
AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

asName: The prop's name for the impulse to applied to, in this case the chair.

float afX: Impulse applied on the X axis, can be negative of positive values

float afY: Impulse applied on the Y axis, Y axis is always up and down, positive for up, negative for down

float afZ: Same properties as the X axis

asCoordSystem: Co-ordinate system to be used, in this case just use "world"

You'll need to experiment with and use a combination of values to get the right about of impulse you want. If you look in the editor you can see which directions the axises are by the coloured lines:

Red: X axis
Blue: Z axis
Green: Y axis

Hope this helps.
01-19-2011, 03:13 AM
Find


Messages In This Thread
this could be interesting - by THE/ILL/WILL - 01-19-2011, 02:34 AM
RE: this could be interesting - by Equil - 01-19-2011, 03:13 AM
RE: this could be interesting - by THE/ILL/WILL - 01-19-2011, 03:42 AM
RE: this could be interesting - by Equil - 01-19-2011, 03:52 AM
RE: this could be interesting - by Andross - 01-19-2011, 06:26 AM



Users browsing this thread: 1 Guest(s)