Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "ACCG"

From Creatures Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''ACCG''' is a [[CAOS]] command used set or output the acceleration due to gravity of a particular object.
+
{{caosinfobox|
 +
name=ACCG |
 +
whatis=command and function |
 +
category=Physics |
 +
version=C2/CV/C3/DS |
 +
commandparams=gravity (float) |
 +
functionparams= |
 +
functiontype=float |
 +
relatedcaos=[[AERO]], [[FALL]] |
 +
relatedconcepts=[[Physics]]
 +
}}
 +
 
 +
'''ACCG''' involves the acceleration due to gravity of a particular object.
  
 
==Usage==
 
==Usage==
Syntax: ''ACCG A(int)''
+
===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]].
 
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''
 
Syntax: ''ACCG''
  
Returns, as a float, current acceleration due to gravity, as above.
+
Returns, as a float, current acceleration due to gravity of [[TARG]], as set by the above command.
  
 
==Examples==
 
==Examples==
 +
ACCG being used in the command line to make [[HOTS]] fall at 20 pixels per tick squared:
 +
<pre>
 +
TARG HOTS ACCG 20
 +
</pre>
 +
 
Make [[HOTS]] fall twice as fast:
 
Make [[HOTS]] fall twice as fast:
 
<pre>
 
<pre>
Line 19: Line 38:
 
</pre>
 
</pre>
  
Antigravity!
+
Antigravity! Reverse the ACCG value of all agents in the world, so objects fall upward.
 
<pre>
 
<pre>
 
ENUM 0 0 0
 
ENUM 0 0 0
Line 35: Line 54:
 
The reason for the common assumption that heavier things always fall faster is that heavier objects typically have less [[AERO|air resistance]] than lighter objects - that's why a feather falls so much more slowly than a brick. But on the Moon, where there is little atmosphere, both fall in the same way.
 
The reason for the common assumption that heavier things always fall faster is that heavier objects typically have less [[AERO|air resistance]] than lighter objects - that's why a feather falls so much more slowly than a brick. But on the Moon, where there is little atmosphere, both fall in the same way.
  
[[category:C3 CAOS Commands]]
+
==External links==
 +
*[https://web.archive.org/web/20050312123240/http://www.freewebs.com/alimaggs/creaturesdev/cdn/c3/knowledgebase/c3_agentprop.html Agent Properties] at an archive of the CDN.  Provides an explanation of how to use ACCG.
 +
 
 +
[[category:C2 CAOS Commands]]
 +
[[Category:C3 CAOS Commands]]

Latest revision as of 01:32, 19 July 2022

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[edit]

Command[edit]

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[edit]

Syntax: ACCG

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

Examples[edit]

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[edit]

There is no equivalent of ACCG in the real world. On Earth, all objects at the same altitude fall with the same acceleration due to gravity, and differences due to 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 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 falls so much more slowly than a brick. But on the Moon, where there is little atmosphere, both fall in the same way.

External links[edit]

  • Agent Properties at an archive of the CDN. Provides an explanation of how to use ACCG.