Rasterfarm-SDK
|
#include <physical.h>
Public Member Functions | |
SurfaceAttributes () | |
SurfaceAttributes (float elasticityCoeff, float frictionCoeff, float faceWidth=0.0f) | |
Public Attributes | |
float | elasticityCoeff |
float | frictionCoeff |
float | width |
Describes some basic physical attributes of a planar-surface.
Physical::SurfaceAttributes::SurfaceAttributes | ( | ) |
Physical::SurfaceAttributes::SurfaceAttributes | ( | float | elasticityCoeff, |
float | frictionCoeff, | ||
float | faceWidth = 0.0f ) |
float Physical::SurfaceAttributes::elasticityCoeff |
A coefficient to determine how an object behaves when a force is applied to it(stress). How the object is rendered is determined by the developer with the derived Scene, but Display provides callbacks when an object can not absorb or transfer a given force or stress. The values here should be clamped between [0.0 ,1.0] but won't be enforced by the Display class.
float Physical::SurfaceAttributes::frictionCoeff |
A coefficient of surface resistance, related to smoothness. Due to complexity, this is on a per-object basis and not per object-surface. This should not be confused with drag, and this is the value another object will experience when rubbing or moving against it. For example, if this object was a floor, ice would be much lower than sand.
float Physical::SurfaceAttributes::width |
The spatial-width of the surface;