ContactPhysics Struct Reference
[Physics]

Inherits Service.

Inherited by ContactImpl.

List of all members.

Public Methods

virtual void setRestitution (Float r)=0
virtual Float getRestitution () const=0
virtual void setFriction (Float mu)=0
virtual Float getFriction () const=0


Detailed Description

Describe a collision and it's response parameters.


Member Function Documentation

virtual Float ContactPhysics::getFriction   const [pure virtual]
 

Retrieve the friction constant.

Scripted as:
[ r/w float ] friction

virtual Float ContactPhysics::getRestitution   const [pure virtual]
 

Retrieve the coefficient of restitution.

Scripted as:
[ r/w float ] restitution

virtual void ContactPhysics::setFriction Float    mu [pure virtual]
 

Specify a friction constant.

Parameters:
mu  A value >0.0, or the constant INFINITY.
Scripted as:
[ r/w float ] friction

virtual void ContactPhysics::setRestitution Float    r [pure virtual]
 

Specify a coefficient of restitution.

Parameters:
r  A value between 0.0 and 1.0, where 0.0 is no bounce, and 1.0 is a "perfect" bounce.
Scripted as:
[ r/w float ] restitution


The documentation for this struct was generated from the following file:


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen