Сообщения, созданные пользователем Juani
01 октября 2017 13:33
29 сентября 2017 23:59
29 сентября 2017 23:31
29 сентября 2017 21:58
1) Is it correct that Blend4Web do not have a method to group meshes? For example, I wanted to group all the meshes to position the whole group in the center, but I could not find a way to do it.
List all objects in the scene by type or ID
link
2) I'm struggling to find a Javascript API method to get the width of an object. I understood that in 3d space I have to leave my bias and I should not search for the width, but for the dimension in one of the axis. I tried to use the get_object_bounding_box and the get_matrix methods, but my uncertainty about 3d concepts left me with nothing. How do you find, for example, the x dimension of an object?
This method returns a list with values {max_x, min_x, max_y, min_y, max_z, min_z}, here we have all the dimensions of the mesh. If for example I want to know what is the dimension of a cube on the x axis and the method says :
max_x: 10.25, min_x: 8.25, I do a mathematical operation 10.25 - 8.25 and the value I get is the dimension of the object on the x-axis.
3) Would you do this task, putting objects in row, in a different way?
I do not find a better method.
List all objects in the scene by type or ID
link
2) I'm struggling to find a Javascript API method to get the width of an object. I understood that in 3d space I have to leave my bias and I should not search for the width, but for the dimension in one of the axis. I tried to use the get_object_bounding_box and the get_matrix methods, but my uncertainty about 3d concepts left me with nothing. How do you find, for example, the x dimension of an object?
This method returns a list with values {max_x, min_x, max_y, min_y, max_z, min_z}, here we have all the dimensions of the mesh. If for example I want to know what is the dimension of a cube on the x axis and the method says :
max_x: 10.25, min_x: 8.25, I do a mathematical operation 10.25 - 8.25 and the value I get is the dimension of the object on the x-axis.
3) Would you do this task, putting objects in row, in a different way?
I do not find a better method.
29 сентября 2017 21:06
18 сентября 2017 22:30
14 сентября 2017 19:37
10 сентября 2017 18:37
Hi, I finally mastered gravity, how to work gravity in b4w is different from BGE, I made an example by applying torque at the same time as gravity. If we click on the letter 'o' the cube will rotate and rise, when we release the key the cube will fall. I put it in a web of my company, I do not know how to put the project for all to see.
www.excavacionestrapero.com/letra
www.excavacionestrapero.com/letra