b3dSetPhysicsBodyFriction

Sets physics body surface friction (0.0=ice/frictionless, 0.5=wood, 1.0=rubber, higher=sticky). Takes bodyHandle (physics body from b3dCreatePhysicsBody), friction (0.0=no friction like ice, 0.5=moderate like wood, 1.0=high like rubber, higher=very sticky). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

bodyHandle Int
friction Double

Returns

Void

Quick Summary

Sets physics body surface friction (0.0=ice/frictionless, 0.5=wood, 1.0=rubber, higher=sticky). Takes bodyHandle (physics body from b3dCreatePhysicsBody), friction (0.0=no friction like ice, 0.5=moderate like wood, 1.0=high like rubber, higher=very sticky). Returns nothing.

Technical Exegesis...

Sets physics body surface friction (0.0=ice/frictionless, 0.5=wood, 1.0=rubber, higher=sticky). Takes bodyHandle (physics body from b3dCreatePhysicsBody), friction (0.0=no friction like ice, 0.5=moderate like wood, 1.0=high like rubber, higher=very sticky). Returns nothing. Sets Jolt friction property, affects sliding resistance when body contacts surfaces. Controls tangential force during collisions.

This function configures surface friction. Friction values: 0.

Example

Example.bam
; No example implemented yet