Skip to content

LUA Bindings Reference

Jakob Flierl edited this page Jul 20, 2025 · 20 revisions
  • Viewer - instance v in the LUA script editor

Objects

Base class Object, derived classes:

Base class Mesh derived classes:

Bullet Physics bindings

registered classes

class details

  • btVector3
    • properties:
      • y number
      • x number
      • z number
    • methods:
      • __init
      • getX
      • __tostring
      • fuzzyZero
      • normalize
      • dot
      • angle
      • minAxis
      • isZero
      • __div
      • distance2
      • cross
      • rotate
      • furthestAxis
      • __eq
      • maxAxis
      • triple
      • absolute
      • getY
      • setZ
      • closestAxis
      • setY
      • length2
      • distance
      • setX
      • __add
      • setZero
      • normalized
      • __mul
      • getZ
      • length
      • __sub
      • lerp
  • btBoxShape
    • properties:
      • userPointer nil
    • methods:
      • __init
      • localGetSupportVertexNonVirtual
      • getUserPointer
      • getShapeType
      • getMarginNonVirtual
      • serialize
      • getLocalScaling
      • getMargin
      • calculateLocalInertia
      • getHalfExtentsWithoutMargin
      • setLocalScaling
      • isCompound
      • setMargin
      • serializeSingleShape
      • isConvex
      • getHalfExtentsWithMargin
      • getImplicitShapeDimensions
      • localGetSupportVertexWithoutMarginNonVirtual
      • getAabb
      • setSafeMargin
      • getMarginNV
      • isConvex2d
      • setImplicitShapeDimensions
      • getAabbNonVirtual
      • getName
      • isNonMoving
      • getLocalScalingNV
      • isSoftBody
      • isInfinite
      • setUserPointer
      • localGetSupportingVertexWithoutMargin
      • calculateSerializeBufferSize
      • isPolyhedral
      • isConcave
  • btConeShape
    • properties:
      • userPointer nil
      • radius number
      • height number
    • methods:
      • __init
      • localGetSupportVertexNonVirtual
      • localGetSupportingVertex
      • getUserPointer
      • getShapeType
      • getMarginNonVirtual
      • serialize
      • getRadius
      • setImplicitShapeDimensions
      • getMargin
      • calculateLocalInertia
      • setRadius
      • setSafeMargin
      • setLocalScaling
      • isCompound
      • setMargin
      • serializeSingleShape
      • setHeight
      • isConvex
      • getImplicitShapeDimensions
      • localGetSupportVertexWithoutMarginNonVirtual
      • isNonMoving
      • isConvex2d
      • setConeUpIndex
      • calculateSerializeBufferSize
      • getConeUpIndex
      • getLocalScaling
      • isInfinite
      • getAabbNonVirtual
      • getName
      • localGetSupportingVertexWithoutMargin
      • getLocalScalingNV
      • getHeight
      • isSoftBody
      • getAabb
      • setUserPointer
      • getMarginNV
      • isPolyhedral
      • isConcave
  • btTransform
    • methods:
      • setIdentity
      • setRotation
      • inverseTimes
      • getRotation
      • setFromOpenGLMatrix
      • __init
      • mult
      • inverse
      • invXform
      • getIdentity
      • setBasis
      • getOpenGLMatrix
      • setOrigin
  • btDefaultMotionState
    • methods:
      • __init
      • setWorldTransform
      • getWorldTransform
  • btBoxShape
    • properties:
      • userPointer nil
    • methods:
      • __init
      • localGetSupportVertexNonVirtual
      • getUserPointer
      • getShapeType
      • getMarginNonVirtual
      • serialize
      • getLocalScaling
      • getMargin
      • calculateLocalInertia
      • getHalfExtentsWithoutMargin
      • setLocalScaling
      • isCompound
      • setMargin
      • serializeSingleShape
      • isConvex
      • getHalfExtentsWithMargin
      • getImplicitShapeDimensions
      • localGetSupportVertexWithoutMarginNonVirtual
      • getAabb
      • setSafeMargin
      • getMarginNV
      • isConvex2d
      • setImplicitShapeDimensions
      • getAabbNonVirtual
      • getName
      • isNonMoving
      • getLocalScalingNV
      • isSoftBody
      • isInfinite
      • setUserPointer
      • localGetSupportingVertexWithoutMargin
      • calculateSerializeBufferSize
      • isPolyhedral
      • isConcave
  • btRigidBodyConstructionInfo
    • methods:
      • __init
  • btRigidBody
    • methods:
      • getCenterOfMassTransform
      • __init
      • getAngularSleepingThreshold
      • clearForces
      • setNewBroadphaseProxy
      • computeImpulseDenominator
      • getMotionState
      • setCenterOfMassTransform
      • getConstraintRef
      • checkCollideWithOverride
      • setGravity
      • setDamping
      • isStaticObject
      • getWorldTransform
      • proceedToTransform
      • setLinearVelocity
      • setWorldTransform
      • getNumConstraintRefs
      • getCcdMotionThreshold
      • getCollisionShape
      • integrateVelocities
      • getCollisionFlags
      • applyImpulse
      • translate
      • forceActivationState
      • getAabb
      • predictIntegratedTransform
      • getAngularDamping
      • getInterpolationWorldTransform
      • updateInertiaTensor
      • setIslandTag
      • getVelocityInLocalPoint
      • setInvInertiaDiagLocal
      • checkCollideWith
      • updateDeactivation
      • setActivationState
      • getCenterOfMassPosition
      • setInterpolationLinearVelocity
      • getInvMass
      • setInterpolationWorldTransform
      • getBroadphaseProxy
      • setMotionState
      • setUserPointer
      • setFlags
      • setAngularFactor
      • getCcdSweptSphereRadius
      • getLinearDamping
      • getCompanionId
      • getLinearFactor
      • applyCentralForce
      • setLinearFactor
      • getFlags
      • applyDamping
      • computeAngularImpulseDenominator
      • wantsSleeping
      • getActivationState
      • setAnisotropicFriction
      • isInWorld
      • setCcdMotionThreshold
      • setSleepingThresholds
      • getInterpolationAngularVelocity
      • setFriction
      • hasContactResponse
      • getGravity
      • getAngularFactor
      • applyTorque
      • getUserPointer
      • setCompanionId
      • addConstraintRef
      • getLinearSleepingThreshold
      • setHitFraction
      • setCollisionFlags
      • applyTorqueImpulse
      • setContactProcessingThreshold
      • getCcdSquareMotionThreshold
      • getAnisotropicFriction
      • getTotalTorque
      • setRestitution
      • isActive
      • getInvInertiaTensorWorld
      • getFriction
      • getOrientation
      • getHitFraction
      • setAngularVelocity
      • getTotalForce
      • setInterpolationAngularVelocity
      • getInvInertiaDiagLocal
      • hasAnisotropicFriction
      • applyGravity
      • getLinearVelocity
      • applyCentralImpulse
      • saveKinematicState
      • setDeactivationTime
      • setCcdSweptSphereRadius
      • getInterpolationLinearVelocity
      • getIslandTag
      • removeConstraintRef
      • getRestitution
      • activate
      • getBroadphaseHandle
      • setMassProps
      • mergesSimulationIslands
      • isKinematicObject
      • getAngularVelocity
      • getDeactivationTime
      • applyForce

(WIP)

Clone this wiki locally