Avorion Script API Documentation

Physics

function Physics(var id)

Parameters

id The id of the entity this component belongs to, or the entity itself, must be an id of an existing entity or nil for the entity in the current script context

Returns

A new instance of Physics

property vec3 centerOfMass[read-only]
property vec3 centerOfRotation[read-only]
property double driftDecrease
property Entity entity[read-only]
property uuid entityId[read-only]
property double invMass[read-only]
property double kineticEnergy[read-only]
property double mass[read-only]
property double rotationalEnergy[read-only]
property double rotationDecrease

function var applyGlobalForce(vec3 position, vec3 direction, float size, float time)

Returns

nothing

function var applyImpulse(dvec3 position, vec3 direction, float size)

Returns

nothing

function var applyLocalForce(vec3 position, vec3 force, float size, float time)

Returns

nothing

function var lerpPositions(double timeStep)

Returns

nothing

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7