[x3d-public] Simple animations...well, sort of working?

John Carlson yottzumm at gmail.com
Mon Aug 7 12:36:27 PDT 2023


And the character runs most of the time, for the rest of the 10 seconds.

On Mon, Aug 7, 2023 at 1:59 PM John Carlson <yottzumm at gmail.com> wrote:

> Sample code:
>
> Every 10 seconds, the character kind of jumps.
>
> ChatGPT/Shell-GPT is good at providing some direction, but for VRML is
> awful!
>
> DEF myRunBooleanSequencer BooleanSequencer {
>         key [ 0 0.9 1.1 2.23 4.3 5.5 6.3 7.3 8.5 8.6 10 ]  #
> Leif_humanoid_root_TranslationInterpolator x 10
>         keyValue [ TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE
> TRUE ]
> }
> DEF myJumpBooleanSequencer BooleanSequencer {
>         key [ 0 0.9 1.1 2.23 4.3 5.5 6.3 7.3 8.5 8.6 10 ]  #
> Leif_humanoid_root_TranslationInterpolator x 10
>         keyValue [ FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE
> FALSE ]
> }
>
> DEF myJumpTimeTrigger TimeTrigger {
> }
>
> DEF myRunTimeTrigger TimeTrigger {
> }
>
> DEF myJumpBooleanFilter BooleanFilter {
> }
>
> DEF myRunBooleanFilter BooleanFilter {
> }
>
> DEF myJumpBooleanTrigger BooleanTrigger {
> }
>
> DEF myRunBooleanTrigger BooleanTrigger {
> }
>
> ROUTE EverythingTimer.fraction_changed TO
> myRunBooleanSequencer.set_fraction
> ROUTE EverythingTimer.fraction_changed TO
> myJumpBooleanSequencer.set_fraction
>
> ROUTE myRunBooleanSequencer.value_changed TO myJumpTimeTrigger.set_boolean
> ROUTE myJumpBooleanSequencer.value_changed TO myRunTimeTrigger.set_boolean
>
> ROUTE myRunBooleanSequencer.value_changed TO
> myJumpBooleanFilter.set_boolean
> ROUTE myJumpBooleanSequencer.value_changed TO
> myRunBooleanFilter.set_boolean
>
> ROUTE myRunBooleanFilter.inputNegate TO RunTimer.enabled
> ROUTE myJumpBooleanFilter.inputNegate TO JumpTimer.enabled
>
> ROUTE myRunTimeTrigger.triggerTime TO RunTimer.startTime
> ROUTE myJumpTimeTrigger.triggerTime TO JumpTimer.startTime
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230807/c1c127ac/attachment.html>


More information about the x3d-public mailing list