LogoLogo
CtrlK
  • Introduction
  • sdks
    • Feature Comparison
    • Unity
    • Godot
    • Defold
    • LÖVE
    • Unreal
  • Quick Start
    • Unity
    • Godot
    • Defold
    • LÖVE
    • Unreal
  • Server Side
    • Entities
    • Chunks
    • Dimensions
    • Events
    • Logging
    • Lua Environment
    • Git Primer
    • Physics
  • HTTP API
    • Authentication
    • Player API
  • Api Reference
    • Entity API
      • Create
      • Message
      • Entity
        • Fields
          • ID
          • Type
          • Data
          • Chunkloader
          • Transient
        • Methods
          • Move
          • MoveTo
          • GetPosition
          • Remove
          • GetNearbyEntities
          • Warp
        • Necessary Methods
          • init
          • update
          • message
    • Client API
      • Message
    • Dimension API
      • Create
      • Delete
      • List
    • Events API
      • on_player_join
      • on_player_leave
    • Table API
      • Append
      • Remove
      • Join
    • Util API
      • Time
      • TimeMillis
    • HTTP Request API
      • Get
      • Post
      • Put
      • Delete
    • Physics API
      • NewBody
      • NewBoxShape
      • NewSphereShape
  • Template Projects
    • Rust Realm (MMO by BiteMe Games)
Powered by GitBook
On this page
  1. Api Reference

Physics API

api.physics

Method
Parameters
Returns
Description

NewBody

shape: Shape mass: float

Body

Create a physics body with a shape and mass capable of collisions.

NewBoxShape

width: float length: float depth: float

Box

An axis-aligned bounding box.

NewSphereShape

radius: float

Sphere

It's just a sphere.

PreviousDeleteNextNewBody

Last updated 4 months ago