Skip to Content
The Alchemy Project

struct ORBIT

An actor circling a centre on a growing circle (scOrbitUpdate), its centre, radius and turn kept in the actor's scene-owned words.

Declared in orbit.h.

Fields

NameDescription
const Sint32 *script
Sint16scriptCursor
Uint16facing
FIXEDxPosition (x, y, z), in 16.16 fixed-point pixels.
FIXEDy
FIXEDz
FIXEDgroundHeight
FIXEDscaleX
FIXEDscaleY
Uint16radius
Uint8layer
Uint8priorityFlags
FIXEDvelocityX
FIXEDvelocityY
FIXEDvelocityZ
FIXEDspeedLimit
FIXEDacceleration
FIXEDtargetX
FIXEDtargetY
FIXEDtargetZ
FIXEDcentreX16.16 fixed-point pixels, in bounce.
FIXEDcentreZ16.16 fixed-point pixels, in gravity.
FIXEDorbitRadius16.16 fixed-point pixels, in sceneWord.
void *sprite
Uint8spriteStorageKind
Uint8motionFlags
Uint8arrivalAxis
Uint8conditionResult
Uint8snapToTarget
Uint8collisionFlags
Uint8steeringFlags
Uint8paused
Uint8retainSpriteCache
Uint8repeatCount
Sint16wait
Uint8refused
Uint8frozen
Uint8phaseWhere the circle's growth starts, 1/64 turns.
Uint8growthGrows by 10 every other tick up to 141.
Sint16angleIts place on the circle, 1/65536 turns.
Sint16speedIts turn a tick, slowed by 128 a tick once grown.

Description

An actor circling a centre on a growing circle (scOrbitUpdate), its centre, radius and turn kept in the actor's scene-owned words.

struct ORBIT

Referenced by scMagmaRockInsideDriftForSteps(), scMagmaRockInsideLearnBlaze() and scOrbitUpdate().

Definition at line 64 of file orbit.h.

Fields in detail

script

const Sint32 *script

scriptCursor

Sint16 scriptCursor

facing

Uint16 facing

x

FIXED x

Position (x, y, z), in 16.16 fixed-point pixels.

y

FIXED y

z

FIXED z

groundHeight

FIXED groundHeight

scaleX

FIXED scaleX

scaleY

FIXED scaleY

radius

Uint16 radius

layer

Uint8 layer

priorityFlags

Uint8 priorityFlags

velocityX

FIXED velocityX

velocityY

FIXED velocityY

velocityZ

FIXED velocityZ

speedLimit

FIXED speedLimit

acceleration

FIXED acceleration

targetX

FIXED targetX

targetY

FIXED targetY

targetZ

FIXED targetZ

centreX

FIXED centreX

16.16 fixed-point pixels, in bounce.

centreZ

FIXED centreZ

16.16 fixed-point pixels, in gravity.

orbitRadius

FIXED orbitRadius

16.16 fixed-point pixels, in sceneWord.

sprite

void *sprite

spriteStorageKind

Uint8 spriteStorageKind

motionFlags

Uint8 motionFlags

arrivalAxis

Uint8 arrivalAxis

conditionResult

Uint8 conditionResult

snapToTarget

Uint8 snapToTarget

collisionFlags

Uint8 collisionFlags

steeringFlags

Uint8 steeringFlags

paused

Uint8 paused

retainSpriteCache

Uint8 retainSpriteCache

repeatCount

Uint8 repeatCount

wait

Sint16 wait

refused

Uint8 refused

frozen

Uint8 frozen

phase

Uint8 phase

Where the circle's growth starts, 1/64 turns.

growth

Uint8 growth

Grows by 10 every other tick up to 141.

angle

Sint16 angle

Its place on the circle, 1/65536 turns.

speed

Sint16 speed

Its turn a tick, slowed by 128 a tick once grown.