voxcraft / voxcraft-sim

a GPU-accelerated voxel-based physics engine
Creative Commons Zero v1.0 Universal
48 stars 11 forks source link

What are the units and range of VXA.VXC.Structure.PhaseOffset? #36

Closed jrieffel closed 3 years ago

jrieffel commented 3 years ago

Is it radians (0..2pi) or cycles (0..1) or something else?

https://gpuvoxels.readthedocs.io/en/docs/vxa-vxd/tags.html#vxa-vxc-palette-material

does not specify.

skriegman commented 3 years ago

The unit is actuation cycles; it will accept any real number. Here's how that number is used:

https://github.com/voxcraft/voxcraft-sim/blob/75945922e6ee8ba5a5539a42385e57970385ffd3/src/VX3/VX3_VoxelyzeKernel.cu#L639

skriegman commented 3 years ago

We are in the process of updating (and renaming!) the docs. We will add this. Thanks.