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
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''ACCG''' is a [[CAOS]] command used set or output the ACCG property of an agent. ACCG, simply speaking, is how fast or slow an object falls under gravity.
+
{{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 for Input==
+
'''ACCG''' involves the acceleration due to gravity of a particular object.
Syntax:
 
''ACCG A(int)''
 
  
Standalone command.
+
==Usage==
 +
===Command===
 +
Syntax: ''ACCG A(float)''
  
Sets the acceleration due to gravity of an agent 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]].
  
==ACCG for Output==
+
===Function===
Syntax:
+
Syntax: ''ACCG''
''ACCG''
 
  
Used in place of a numeric constant or variable.
+
Returns, as a float, current acceleration due to gravity of [[TARG]], as set by the above command.
 
 
Returns the float stored in the current TARGs ACCG property.
 
  
 
==Examples==
 
==Examples==
''ACCG'' being used in the command line to make [[HOTS]] fall at 20 pixels per tick squared:
+
ACCG being used in the command line to make [[HOTS]] fall at 20 pixels per tick squared:
 
<pre>
 
<pre>
TARG HOTS ACCG 20  
+
TARG HOTS ACCG 20
 
</pre>
 
</pre>
Being used in the command line to make HOTS fall upwards at 20 pixels per tick squared:
+
 
 +
Make [[HOTS]] fall twice as fast:
 
<pre>
 
<pre>
TARG HOTS ACCG -20
+
TARG HOTS
 +
SETV va00 ACCG
 +
MULV va00 2
 +
ACCG va00
 
</pre>
 
</pre>
  
----
+
Antigravity! Reverse the ACCG value of all agents in the world, so objects fall upward.
 
 
Being used in the command line to output the ACCG of HOTS:
 
 
<pre>
 
<pre>
TARG HOTS OUTV ACCG
+
ENUM 0 0 0
 +
  SETV va00 ACCG
 +
  NEGV va00
 +
  ACCG va00
 +
NEXT
 
</pre>
 
</pre>
  
Line 37: Line 50:
 
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 [[Wikipedia:Galileo Galilei|Galileo]], apocryphally by dropping similarly-sized balls from the Leaning Tower of Pisa.
 
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 [[Wikipedia:Galileo Galilei|Galileo]], apocryphally by dropping similarly-sized balls from the Leaning Tower of Pisa.
  
In this respect the [[CEE]] corresponds more closely to [[Wikipedia:Aristotle|Aristotle]]'s world model, in which he postulated that objects accelerate earthward in direct proportion to their weights.
+
In this respect the [[CEE]] corresponds more closely to [[Wikipedia:Aristotle|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 [[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 air resistance than lighter objects - that's why a feather falls so much more slowly than a brick. But on the Moon, both would fall in the same way.
+
==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:C3 CAOS Commands]]
+
[[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.