I try to modify the collision capsule for my player at runtime by reading data from properties and then shift the position up to make it match the ground. the diameter and height work fine but seem like position is not apply.
here an example
-- height = 1.8, width = 0.6
local data = bullet3d.shape.get_shape(shape)
data.height = self.height - self.width
data.diameter = self.width
data.position = vmath.vector3(0, self.height / 2, 0) -- not apply
bullet3d.shape.set_shape(shape, data)
I try to follow the api and try with difference height and width value but still no use.
edit: correct api link