Skip to content

There is no CollisionMesh in examples #63

Description

@CrossroadInTheVoid

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions