Jump to content

mdidillon

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by mdidillon

  1. Hello, the TPick::triangle value is always 0 when I use CameraPick , doesn't matter which triangle I am hitting. Is the triangle value not supported in LE2.3? marc
  2. Hello, i am currently working on 2D GUI for my game and i have some questions about the given 2D render function of the leadwerks engine. With the given c/c++ 2D render function (DrawText, DrawImage, etc.): Is it possible to set a clipping rectangle? Is there a way to draw a image with a source and destination rectangle? marc PS: The attached screenshot shows the current state of the implementation
  3. Hello everyone, I bought LE Engine at the beginning of this week and finally have some time to play around with it. So far I really love it. I am using the C++ interface. Currently I am writing a little multiplayer physics game, just to get used of everything. I have some problems with ScaleEntity in combination with the physic/collision engine. If I create a body and a mesh and make the mesh child of the body and then scale the body entity, the collision/physics does not work anymore (the scaled object does not collide anymore with other objects). My first thought was that the body position and dimension is not equal to mesh representation, but physics debug mode showed that they are equal. Everything works fine if I set dimension of body and mesh separately, before it parent the body with the mesh. Here is the code: This works: TBody body=CreateBodyBox(2,2,2); SetBodyMass(body,1); TMesh mesh=CreateCube(); ScaleEntity(mesh, Vec3(2,2,2)); EntityParent(mesh,body) This does NOT work (no collision/physic interaction anymore): TBody body=CreateBodyBox(); SetBodyMass(body,1); TMesh mesh=CreateCube(); EntityParent(mesh,body); ScaleEntity(body, Vec3(2,2,2)); Is this meant to be like that? marc
×
×
  • Create New...