Skip to content

PhysicsGravity

Narta Xaymar Dirks edited this page Nov 5, 2026 · 1 revision
BlitzLLVM

PhysicsGravity 〔BlitzLLVM〕

PhysicsGravity:Void x:Float32, y:Float32, z:Float32, world:Int32=0
Parameter Mode Type Default Description
x In Float32 required Gravity along x.
y In Float32 required Gravity along y (up).
z In Float32 required Gravity along z.
world In Int32 0 The physics world, 0 (default) for the default world.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Sets the gravity of a world in meters per second squared. The default is 0, -9.81, 0.

Differences

  • The original has no such command. This is an extension; programs that use it do not compile with the original Blitz3D.

Related Commands

PhysicsAngularDamping 〔BlitzLLVM〕, PhysicsAngularVelocity 〔BlitzLLVM〕, PhysicsApplyAngularImpulse 〔BlitzLLVM〕, PhysicsApplyForce 〔BlitzLLVM〕, PhysicsApplyForceAt 〔BlitzLLVM〕, PhysicsApplyImpulse 〔BlitzLLVM〕, PhysicsApplyImpulseAt 〔BlitzLLVM〕, PhysicsGravityScale 〔BlitzLLVM〕

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally