b3dGetPhysicsBodyVelocityX

Gets physics body X-axis linear velocity in units/sec (horizontal movement speed). Takes bodyHandle (physics body from b3dCreatePhysicsBody). Returns X-component of linear velocity in world units per second (positive = moving right, negative = moving left, 0.0 if physics not initialized or body not found).

3D Graphics

Parameters & Returns

Parameters

bodyHandle Int

Returns

Double

Quick Summary

Gets physics body X-axis linear velocity in units/sec (horizontal movement speed). Takes bodyHandle (physics body from b3dCreatePhysicsBody). Returns X-component of linear velocity in world units per second (positive = moving right, negative = moving left, 0.0 if physics not initialized or body not found).

Technical Exegesis...

Gets physics body X-axis linear velocity in units/sec (horizontal movement speed). Takes bodyHandle (physics body from b3dCreatePhysicsBody). Returns X-component of linear velocity in world units per second (positive = moving right, negative = moving left, 0.0 if physics not initialized or body not found). Queries Jolt BodyInterface.GetLinearVelocity, extracts X component. Read-only state query.

This function retrieves X velocity component.

Example

Example.bam
; No example implemented yet