object:applyLinearImpulse()

Type Function
Object ParticleSystem
Library physics.*
Return value none
Revision 2017.3110
Keywords applyLinearImpulse, physics, LiquidFun
See also physics.newParticleSystem()
object:applyForce()

Overview

Similar to object:applyForce() except that an impulse is a single momentary jolt in newton-seconds.

Syntax

particleSystem:applyLinearImpulse( xForce, yForce )
xForce, yForce (required)

Numbers. Amount of impulse force to apply in the x and y directions respectively.

Example

particleSystem:applyLinearImpulse( 0, -9.8 * particleSystem.particleMass )