I want to create a cube in bmesh at a specific position. How can I accomplish this?
I'm interested in as efficient solution as possible btw... there will be A LOT of cubes to create every frame.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityI want to create a cube in bmesh at a specific position. How can I accomplish this?
I'm interested in as efficient solution as possible btw... there will be A LOT of cubes to create every frame.
A person going by the nick @Random
helped me with this on blender.chat. The solution was to pass translation matrix to create_cube
op.
bmesh.ops.create_cube(bm, size=0.5, matrix=mathutils.Matrix.Translation(current_point))