struct ORBITER
An actor spiralling round its anchor (scOrbiterSpiral): the circle it keeps in the actor's scene-owned words, and the ticks it has left.
Declared in orbit.h.
Fields
| Name | Description | |
|---|---|---|
const Sint32 * | script | |
Sint16 | scriptCursor | |
Uint16 | facing | |
FIXED | x | Position (x, y, z), in 16.16 fixed-point pixels. |
FIXED | y | |
FIXED | z | |
FIXED | groundHeight | |
FIXED | scaleX | |
FIXED | scaleY | |
Uint16 | radius | |
Uint8 | layer | |
Uint8 | priorityFlags | |
FIXED | velocityX | |
FIXED | velocityY | |
FIXED | velocityZ | |
FIXED | speedLimit | |
FIXED | acceleration | |
FIXED | targetX | |
FIXED | targetY | |
FIXED | targetZ | |
FIXED | bounce | |
FIXED | gravity | |
FIXED | orbitRadius | 16.16 fixed-point pixels, in sceneWord. |
void * | sprite | |
Uint8 | spriteStorageKind | |
Uint8 | motionFlags | |
Uint8 | arrivalAxis | |
Uint8 | conditionResult | |
Uint8 | snapToTarget | |
Uint8 | collisionFlags | |
Uint8 | steeringFlags | |
Uint8 | paused | |
Uint8 | retainSpriteCache | |
Uint8 | repeatCount | |
Sint16 | wait | |
Uint8 | refused | |
Uint8 | frozen | |
Uint8 | countdown | Ticks left of the spiral. |
Uint8 | sceneByte | |
Sint16 | angle | Its place on the circle, 1/65536 turns. |
Uint16 | speed | Twice its turn a tick, 1/65536 turns. |
struct ACTOR * | anchor | The actor it circles, in watchedActor. |
Description
An actor spiralling round its anchor (scOrbiterSpiral): the circle it keeps
in the actor's scene-owned words, and the ticks it has left.
struct ORBITER
Referenced by scAirsRockInsideOrbitAnchor(), scOrbiterSpiral(), scOrbiterStep() and scOrbitSparkSpawn().
Definition at line 14 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
bounce
FIXED bounce
gravity
FIXED 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
countdown
Uint8 countdown
Ticks left of the spiral.
sceneByte
Uint8 sceneByte
angle
Sint16 angle
Its place on the circle, 1/65536 turns.
speed
Uint16 speed
Twice its turn a tick, 1/65536 turns.
anchor
struct ACTOR *anchor
The actor it circles, in watchedActor.