b3dSetPhysicsBodyRestitution

Sets physics body bounciness (0.0=no bounce, 1.0=perfect bounce, values >1 gain energy). Takes bodyHandle (physics body from b3dCreatePhysicsBody), restitution (0.0=no bounce like clay, 1.0=perfect elastic bounce like superball, >1=gain energy on bounce). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

bodyHandle Int
restitution Double

Returns

Void

Quick Summary

Sets physics body bounciness (0.0=no bounce, 1.0=perfect bounce, values >1 gain energy). Takes bodyHandle (physics body from b3dCreatePhysicsBody), restitution (0.0=no bounce like clay, 1.0=perfect elastic bounce like superball, >1=gain energy on bounce). Returns nothing.

Technical Exegesis...

Sets physics body bounciness (0.0=no bounce, 1.0=perfect bounce, values >1 gain energy). Takes bodyHandle (physics body from b3dCreatePhysicsBody), restitution (0.0=no bounce like clay, 1.0=perfect elastic bounce like superball, >1=gain energy on bounce). Returns nothing. Sets Jolt restitution property, affects collision response when body hits surfaces. Controls energy retention in collisions.

This function configures bounce behavior. Restitution values: 0.

Example

Example.bam
; No example implemented yet