Creatures Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
ACCG
This article is about a CAOS command or function.
Category Physics
Version C2/CV/C3/DS
Command
Parameters gravity (float)
Function
Parameters
Return type float
Related
CAOS AERO, FALL
Concepts Physics

ACCG involves the acceleration due to gravity of a particular object.

Usage

Command

Syntax: ACCG A(float)

Sets the acceleration due to gravity of TARG in pixels per tick per tick. In other words, the agent will gain A velocity, negative or positive, on the Y-axis per tick.

Function

Syntax: ACCG

Returns, as a float, current acceleration due to gravity of TARG, as set by the above command.

Examples

ACCG being used in the command line to make HOTS fall at 20 pixels per tick squared:

TARG HOTS ACCG 20

Make HOTS fall twice as fast:

TARG HOTS
SETV va00 ACCG
MULV va00 2
ACCG va00

Antigravity! Reverse the ACCG value of all agents in the world, so objects fall upward.

ENUM 0 0 0
  SETV va00 ACCG
  NEGV va00
  ACCG va00
NEXT

Equivalent in the real world

There is no equivalent of ACCG in the real world. In the real world, all objects which are affected by the same strength of gravity fall with the same acceleration, and differences due to various factors such as altitude are negligible within normal range. This was demonstrated by Galileo, apocryphally by dropping similarly-sized balls from the Leaning Tower of Pisa.

In this respect, the CEE's laws of physics corresponds more closely to Aristotle's world model, in which he postulated that objects fall earthward in direct proportion to their weights.

The reason for the common assumption that heavier things always fall faster is that heavier objects typically have less air resistance than lighter objects - that's why a feather, which is flat, falls much more slowly than a brick, which is blocky. However, on the Moon, since there is very little atmosphere, both fall at the same speed.

Advertisement