How to set value at runtime

0
choarrim posted this 30 October 2017

HI again,

When I load a saved value matrix, it seems to apply the value on the voxels correctly and in playmode, when I press "start edit" I can clearly see that the value and tone of the voxels is changed.

However, when I try and use a projectile, colliding with the volume, it seems to use the old "standard" value of 128. Is there a trick to update the values of the voxels (I have called the refreshAtNextFrame method)? I want to be able to store a new value in the voxel and when other scripts gets the voxel, it should be the updated value and not the old start value.

2 Comments
Order By: Standard | Newest | Votes
0
choarrim posted this 03 November 2017

No answers for this?

0
choarrim posted this 03 November 2017

Aaaaah I finally found why! The hit detection didn't take into account to only check for Active voxels! My bad :(


Our 103 members have posted 431 times in 104 discussions