jalmasi / vrspace

VRSpace: Multiuser Virtual Reality Engine
Apache License 2.0
173 stars 79 forks source link

world editor: objects falling trough the floor #23

Closed jalmasi closed 1 year ago

jalmasi commented 2 years ago

... and it's not a bug, but a feature! ;)

WorldeEditor.alignObject() casts a ray down, then puts the object there. Simple, assuming that bottom of the object is at y=0. But if bottom is below y=0, the object 'falls through' the ground or whatever is below. This method needs to account for object geometry, e.g. bounding box minimum.

jalmasi commented 1 year ago

fixed