whattheheckman / CPPVRLabGroup3

1 stars 0 forks source link

make box creation function #9

Open whattheheckman opened 1 year ago

whattheheckman commented 1 year ago

walkthrough: set a vector3 called base where the player is pointing and clicks set another vector 3 height at the players cursor after they decide where the first point is keep updating the vectors position while moving, use the first vectors x and z + the second vectors y coordinates to visualize the height of the box. (limit the height to about a meter aka 1 unit) after the player makes those, have the player set a width vector3, then a depth vector 3. all of these should be enough to create a mesh with those vectors.

limitations: limit the size of the box to 1 meter to start. Try to make the maximum size easy to change.

docs: https://docs.godotengine.org/en/stable/classes/class_csgbox.html#class-csgbox

https://docs.godotengine.org/en/latest/tutorials/3d/procedural_geometry/index.html#

whattheheckman commented 1 year ago

https://www.youtube.com/watch?v=JnrhURF1jgM

good tutorial and example i found last night