11 fi­nal force

3D World - - TUTORIALS -

Add the last force to the VEX loop by sam­pling the value and gra­di­ent VDB of the ruin. This gives you the dis­tance be­tween point and wall as well as the wall’s nor­mal di­rec­tion. Cal­cu­late a force that points to­wards the wall and add it to the grow di­rec­tion. Sam­ple the VDB a sec­ond time in the new po­si­tion to check if the point is in­side the wall. If so, just push it out along the nor­mal.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.