blaze.dynamics.Contact

Authors:
Blaze team, see AUTHORS file

Maintainers:
Mason Green (zzzzrrr)

License:
zlib/png license

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

const float BIASCOEF ;
The amount of penetration to reduce in each step. Values should range from 0 to 1. Using large values will eliminate penetration in fewer steps, but can cause vibration. cp_bias_coef defaults to 0.1.

const float COLLISIONSLOP ;
The amount that shapes are allowed to penetrate Setting this to zero will work just fine, but using a small positive amount will help prevent oscillating contacts. cp_collision_slop defaults to 0.1.

class Contact ;
Maintains contact information between two shapes.

Vector2D p ;
Contact point

Vector2D n ;
Contact normal

Number dist ;
Contact penetration distance

Vector2D r1 ;
Prestep values

Vector2D r2 ;


Vector2D r1n ;
Prestep values (cached normals)

Vector2D r2n ;


Number nMass ;
Prestep values

Number tMass ;


Number bounce ;


Number jnAcc ;
Persistant contact infomation

Number jtAcc ;


Number jBias ;


Number bias ;


uint hash ;
Contact hash

bool updated ;
Update flag. If not updated then the contact is removed

this(Vector2D p, Vector2D n, Number dist, uint hash);


Page was generated with on Tue Feb 26 16:08:49 2008