Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_Entity::AddImpulse Method
Syntax
C++
int AddImpulse(IFunctionHandler* pH);
Parameters 
Description 
ipart 
The index of the part that receives the impulse. 
position 
The point (in world coordinates) where the impulse is applied. Set this to (0, 0, 0) to ignore it. 
direction 
The direction in which the impulse is applied. 
linearImpulse 
The force of the linear impulse. 
linearImpulseScale 
Scaling of the linear impulse. (Default: 1.0) 
angularAxis 
The axis on which the angular impulse is applied. 
angularImpulse 
The force of the the angular impulse. 
massScale 
Mass scaling of the angular impulse. (Default: 1.0) 

!

Entity.AddImpulse( ipart, position, direction, linearImpulse, linearImpulseScale, angularAxis, angularImpulse, massScale )

! ! Apply an impulse to the entity. ! At least four parameters need to be provided for a linear impulse. ! For an additional angular impulse, at least seven parameters need to be provided. ! !  

!  

!  

!  

!  

!  

!  

!  

 

Copyright (c) 2012. All rights reserved.