b3dApplyPhysicsImpulse

Applies instant linear impulse to physics body (adds to velocity, respects mass, use for explosions/kicks). Takes bodyHandle (physics body from b3dCreatePhysicsBody), ix/iy/iz (impulse vector in kg*units/sec, force integrated over instant). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

bodyHandle Int
ix Double
iy Double
iz Double

Returns

Void

Quick Summary

Applies instant linear impulse to physics body (adds to velocity, respects mass, use for explosions/kicks). Takes bodyHandle (physics body from b3dCreatePhysicsBody), ix/iy/iz (impulse vector in kg*units/sec, force integrated over instant). Returns nothing.

Technical Exegesis...

Applies instant linear impulse to physics body (adds to velocity, respects mass, use for explosions/kicks). Takes bodyHandle (physics body from b3dCreatePhysicsBody), ix/iy/iz (impulse vector in kg*units/sec, force integrated over instant). Returns nothing. Adds impulse to body linear velocity via Jolt AddImpulse, activates body automatically. Use for explosions, kicks, jumps, or any instant force application.

This function applies linear impulse.

Example

Example.bam
; No example implemented yet