mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix base:drop hitbox size (revert part of previous change)
This commit is contained in:
parent
e0be7a8d8c
commit
0e31bdb83f
1 changed files with 3 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ function on_save()
|
||||||
end
|
end
|
||||||
|
|
||||||
if vc.is_client() then
|
if vc.is_client() then
|
||||||
|
local SCALE = 0.3
|
||||||
local scale = {1, 1, 1}
|
local scale = {1, 1, 1}
|
||||||
local rotation = mat4.rotate({
|
local rotation = mat4.rotate({
|
||||||
math.random(), math.random(), math.random()
|
math.random(), math.random(), math.random()
|
||||||
|
|
@ -35,7 +36,7 @@ if vc.is_client() then
|
||||||
local matrix = mat4.idt()
|
local matrix = mat4.idt()
|
||||||
rig:set_model(0, item.model_name(dropitem.id))
|
rig:set_model(0, item.model_name(dropitem.id))
|
||||||
local bodysize = math.min(scale[1], scale[2], scale[3])
|
local bodysize = math.min(scale[1], scale[2], scale[3])
|
||||||
body:set_size({scale[1], bodysize, scale[3]})
|
body:set_size(vec3.mul({scale[1], bodysize, scale[3]}, SCALE))
|
||||||
mat4.mul(matrix, rotation, matrix)
|
mat4.mul(matrix, rotation, matrix)
|
||||||
mat4.scale(matrix, scale, matrix)
|
mat4.scale(matrix, scale, matrix)
|
||||||
rig:set_matrix(0, matrix)
|
rig:set_matrix(0, matrix)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue