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

Difference between revisions of "ELAS"

From Creatures Wiki
Jump to navigation Jump to search
(correct, reformat, add 'real world')
m
Line 8: Line 8:
 
Syntax: ''ELAS''
 
Syntax: ''ELAS''
  
Returns the elasticity of [[TARG]] as an interger percentage.
+
Returns the elasticity of [[TARG]] as an integer percentage.
  
 
==Examples==
 
==Examples==

Revision as of 11:05, 9 January 2006

ELAS is a CAOS command used set or output how 'bouncy' an agent is.

Usage

Syntax: ELAS elasticity(int)

Sets the elasticity of TARG as a percentage. After bouncing, the agent's new upward speed will be elasticity percent of the downwards speed with which it hit the ground.

Syntax: ELAS

Returns the elasticity of TARG as an integer percentage.

Examples

ELAS being used in the command line to make HOTS bounce perfectly:

TARG HOTS ELAS 100 

Being used in the command line to output the ELAS of HOTS:

TARG HOTS OUTV ELAS

Equivalent in the real world

ELAS is equivalent, in a simple mechanical model, to Newton's coefficient of restitution, e, between the ground and the agent, where <math>e = \frac{\mbox{speed of separation}}{\mbox{speed of approach}}</math>. <math>0 \le e \le 1</math>, and e is 1 for perfectly elastic collisions (no loss of kinetic energy) and 0 for perfectly inelastic ones (the objects coalesce).