Next revision | Previous revision |
gamedev:smoothvalue [2015/06/18 00:06] – created dragonlord | gamedev:smoothvalue [2024/03/14 16:45] (current) – dragonlord |
---|
| {{tag>dragonscript utils}} |
<WRAP youarehere> | <WRAP youarehere> |
[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> **Smooth Values** | [[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> **Smooth Values** |
</WRAP> | </WRAP> |
| |
====== Implementations ====== | ====== Implementations ====== |
The Drag[en]gine provides a couple of smooth value implementations for easy use: | The Drag[en]gine provides a couple of smooth value implementations for easy use: |
* [[http://dragengine.rptd.ch/docs/dragengine/latest/classdecSmoothFloat.html|Smooth Float]]: Smooth a single floating point value. | * #@LinkApiDocDE2_HTML~classdecSmoothFloat.html,Smooth Float~@#: Smooth a single floating point value. |
* [[http://dragengine.rptd.ch/docs/dragengine/latest/classdecSmoothDDouble.html|Smooth Double]]: Smooth a single double precision floating point value. | * #@LinkApiDocDE2_HTML~classdecSmoothDDouble.html,Smooth Double~@#: Smooth a single double precision floating point value. |
* [[http://dragengine.rptd.ch/docs/dragengine/latest/classdecSmoothVector.html|Smooth Vector]]: Smooth a 3-component floating point vector. The vector length between new and old values is used as value change speed. This is useful for 3D position smoothing. | * #@LinkApiDocDE2_HTML~classdecSmoothVector.html,Smooth Vector~@#: Smooth a 3-component floating point vector. The vector length between new and old values is used as value change speed. This is useful for 3D position smoothing. |
* [[http://dragengine.rptd.ch/docs/dragengine/latest/classdecSmoothDVector.html|Smooth DVector]]: Smooth a 3-component double precision floating point vector. Same as Smooth Vector but with higher precision. | * #@LinkApiDocDE2_HTML~classdecSmoothDVector.html,Smooth DVector~@#: Smooth a 3-component double precision floating point vector. Same as Smooth Vector but with higher precision. |
| |
====== Usage example DragonScript ====== | ====== Usage example DragonScript ====== |