The BasicAnimator included with PicaVoxel doesn't have a non-looping mode, which is probably why you couldn't figure out how to play the animation just once.
I have a new version of the animator for you that allows you to set whether or not to loop the animation. You will need to replace the code in PicaVoxel/Scripts/BasicAnimator.cs and PicaVoxel/Scripts/Editor/BasicAnimatorEditor.cs with the code from the following Gist:
Assuming you have the following:
- A PicaVoxel Volume for your trampoline
- An animation set up on the trampoline as outlined in the PicaVoxel manual
- A BasicAnimator script attached
- Your own script for controlling the trampoline
First, set the BasicAnimator to non-looping and not play on awake:
Then, to play the animation when something collides with the trampoline, you would add the following to your own script:
public void OnCollisionEnter(Collision collision)
Hope that helps!