Arguments: |
|
---|---|
Returns: | A collision response function that bounces the colliding object off the other object at an equal angle, multiplying its velocity by the given elasticity. |
Return type: | function(presence|object)->undefined |
Returns: | A collision response function that stops the colliding presence at the point of collision. |
---|---|
Return type: | function(presence|object)->undefined |
Arguments: | |
---|---|
Returns: | A collision test function that tests the colliding presence (passed to the Collision motion controller) against the sides of an axis-aligned bounding box defined by the two corners specified. Collision normals, etc. are reported as if the presence is spherical. |
Return type: | function(presence)->object |
Arguments: |
|
---|---|
Returns: | A collision test function that tests the colliding presence (passed to the Collision motion controller) against the visibles listed in the parameter visibles using bounding spheres obtained from the scale field. Collision normals, etc. are reported as if the presence and all visibles are spherical. |
Return type: | function(presence)->object |
Arguments: |
|
---|---|
Returns: | A collision test function that tests the colliding presence (passed to the Collision motion controller) against the visibles listed in <code>visibles</code> using bounding spheres obtained from the <code>scale</code> field. Collision normals, etc. are reported as if the presence is spherical. |
Return type: | function(presence)->object |