Jump to content

Alex88

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Location
    Germany

Alex88's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Ahh ... this is the missing detail! Now it works. Thank you very much!
  2. I have downloaded the example from the "bug report" and tried it, but I have still the problem, if I use the PhysicsSetRotation line, nothing happens. If I use the SetRotation line it works, but there is the ball bug. In the example you use an fbx floor and need to add a brush physics shape, but in my project I already use brushes for the playground.
  3. Exactly, I tried your code but if I use the PhysicsSetRotation line, nothing happens. If I try the SetRotation line, it works, but there is still the bug with the ball.
  4. Hmm okay, this sounds bad. I will try your code tomorrow.
  5. I tried with "Swept collision" but the problem is still there. Here is my lua script: window = Window:GetCurrent() rotation = Vec3(0.0, 0.0, 0.0) rotationAngle = 8.0 pressAnyKey = false function Script:UpdateWorld() rotation = self.entity:GetRotation() --Time:Delay(1) if window:KeyDown(Key.W) and rotation.x < rotationAngle then pressAnyKey = true self.entity:Turn(1 * Time:GetSpeed(), 0, 0) elseif window:KeyDown(Key.S) and rotation.x > -rotationAngle then pressAnyKey = true self.entity:Turn(-1 * Time:GetSpeed(), 0, 0) else pressAnyKey = false end if window:KeyDown(Key.A) and rotation.z < rotationAngle then pressAnyKey = true self.entity:Turn(0, 0, 1 * Time:GetSpeed()) elseif window:KeyDown(Key.D) and rotation.z > -rotationAngle then pressAnyKey = true self.entity:Turn(0, 0, -1 * Time:GetSpeed()) else pressAnyKey = false end end I tried with PhysicsSetRotation but I don't get it to work. If I try it, my playground doesn't do anything. Here it is. It is just a simple ball created in Blender without any uv mapping. The playground is made from primitives. Ball.zip
  6. Hello together, I'm still working on my "roll the ball" game and it's going forward, but now I have a problem with my ball. As long as the ball is rolling, everything works fine, but when the ball is reaching a corner or the playgound is absolutly straight, the collision detection and the physic calculation are going off. I don't use any script for my ball, just the following physic settings: Any ideas?
  7. This is exactly what I have done already. If I attached my lua script to the pivot, nothing rotates. Here is my lua script: function Script:UpdateWorld() self.entity:Turn(1 * Time:GetSpeed(), 0, 0, true) end Hehe, you are absolutely right. It is frustrating to not be able to do such a simple stuff. So did I found a bug in Leadwerks? Because I was too lazy for the UV mapping. This really works! I don't know why, but it works! Can you explain it to me?
  8. This was my first idea too and I saved it as a prefab, but unfortunately it doesn't work as expected.
  9. Hello together, is it possible to make a playground from primitives in just "one big object"? I have created a prefab and attached a lua script to rotate the playground, but unfortunately it only rotate one box.
  10. Hey guys, I have a question about Leadwerks 3.1. Josh said Leadwerks 3.1 use under Linux an OpenGL 4 renderer so if I'm right, my graphic card with OpenGL 3.2 is too old and I need to buy a new one. Is that right?
×
×
  • Create New...