Search the Community
Showing results for tags 'movement'.
-
Hi everyone. New to Leadwerks, what a fantastic tool! Question: has anyone developed a vr movement script that does not use teleporting? I have zero lua experience, trying to learn as I go. Thanks in advance for any assistance! Doogie
-
Hi, i have a simple question: I want to move a model (with GoToPoint) if i press the left mouse button, and play an animation while the model moves. I did: if (window:MouseHit(Key.LButton)) then -- Target position (in place ATM) local targetpos = Vec3(0,0,17) -- Move model player:GoToPoint(targetpos.x,targetpos.y,targetpos.z,1.1,1) -- Animate model local t = Time:GetCurrent() player:SetAnimationFrame(t/100.0,1,1) local playerpos = player:GetPosition(true) end My results moves the object, bu
-
I cannot move around in the scene by pressing the WASD or Arrow keys on the keyboard. I just installed Leadwerks on my laptop for the first time.
-
I'm more an artist than a coder and was looking at the FPS Script to get a rough idea but can't figure out how to control a spacecraft. Basically : orbit around the spacecraft on key toggle W - accelerate S - slow down / backward A / D - roll Mouse - yaw / pitch with zero gravity If there is already a tutorial that I missed (YouTube ?) let me know, otherwise any help most welcome
-
Hello all, I am having trouble positioning and moving an instanced entity. Basically, I am trying to instance a snowball in front of my creature and have him throw that snowball at the target. When I instance the object, I can force the position, but I don't know how to calculate the position relative to the player facing. I also do not know how to calculate and apply the correct the velocity vector to be applied in order for the snowball to be thrown. As part of this, I would also like to be able to adjust this trajectory during the physics update in case I need to track a target.