-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
There is no CollisionMesh in examples and it works totally unclean.
It worked like this in the past:
collision = require("3DreamEngine/collision");
...
self.box_collider_mesh = dream:loadObject("models/collider_box", {splitMaterials = false, noCleanup = true});
...
local _collider = collision:newMesh(self.box_collider_mesh);
...
_collider:moveTo (vec3(_vector_a.x, 0, -1 * _vector_a.y)); --or any other action with created collider
But as I see it was changed. What should be included to fix
attempt to index global 'CollisionMesh' (a nil value)
error? What parametres should I use?
CollisionMesh:newCollisionMesh(mesh, shapeMode)
What the mesh is? Loaded mesh object? Or a string path to an obj file? Link at documentation looks dead.
P. S. I'm thisnickwasfree, I've lost access to that acc so I've created new one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels