我已经创造了X3D反弹球动画。 我只是好奇,我怎么可能让球慢下来,在其高度的峰值,使它看起来更逼真。 先感谢您。
<X3D profile="interactive">
<Scene>
<Background skyColor='0.5 0.5 1'/>
<Transform DEF="Ball" translation="0 1 0" >
<TouchSensor DEF="Touch"/>
<Shape>
<Appearance>
<Material diffuseColor="1 0 0 "/>
</Appearance>
<Sphere radius='1'/>
</Shape>
</Transform>
<TimeTrigger DEF="Trigger"/>
<TimeSensor DEF="Clock" loop="false" cycleInterval="5" />
<PositionInterpolator DEF="Position" key="0.0 0.5 1.0" keyValue="0 1 0 0 5 0 0 1 0"/>
<ROUTE fromNode="Clock" fromField="fraction_changed" toNode="Position" toField="set_fraction"/>
<ROUTE fromNode="Position" fromField="value_changed" toNode="Ball" toField="set_translation"/>
<ROUTE fromNode="Touch" fromField="isActive" toNode="Trigger" toField="set_boolean"/>
<ROUTE fromNode="Trigger" fromField="triggerTime" toNode="Clock" toField="startTime"/>
</Scene>