Birdman Posted September 20, 2012 Share Posted September 20, 2012 I was wondering if somebody did already worked with this? What i need to define a way to measure, size of objects, speed, weight and other stuff. How can i turn object sizes to meters or feet? Same with speed, i can get the velocity vector, how could i define a real speed for objects in KM/h or M/h. velocity = GetBodyVelocity(object,0); speed = Length(velocity); What about weight from mass? Thanks a lot in advance. Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted September 20, 2012 Share Posted September 20, 2012 Its arbitrary and relative. If you say 1 unit is 1m then as long as you base your scale on that 0.01 units is a centimetre, and 1000 is a km.. same for mass 1 mass unit in LE could be called kg .. if thats what you choose it to be and you scale accordingly. The values have no real value or comparison to real world values, only what you decide really. Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Josh Posted September 20, 2012 Share Posted September 20, 2012 Leadwerks uses the metric system already. 1.0 unit = 1 meter. To convert a velocity to Km/h, divide it by 1000. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted September 20, 2012 Share Posted September 20, 2012 In my game I take pretend every unit is 1m. Quote STS - Scarlet Thread Studios AKA: Engineer Ken Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now! Link to comment Share on other sites More sharing options...
Birdman Posted September 21, 2012 Author Share Posted September 21, 2012 Great, thanks for the info guys, 1 unit 1 meter sounds fine. What about mass? @Josh = I just checked the speed i got while driving varies from 0 to 9 or so, that is M per tick? In that case what would be the best way to turn this m/tick to m/h? Quote Link to comment Share on other sites More sharing options...
Josh Posted September 21, 2012 Share Posted September 21, 2012 Meters per second. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Birdman Posted September 21, 2012 Author Share Posted September 21, 2012 velocity = GetBodyVelocity(object,0); speed = Length(velocity)*60*60/1000; // KM/h What do you suggest to take as base for mass? 1 mass 1kg will result in very heavy stuff (say a car will be 900 mass or so isn't that a lot) i'm currently using 1.3 for a car. Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted September 21, 2012 Share Posted September 21, 2012 As long as the forces you are applying are in metric and at the correct scale then yes. So for example a car of 900 mass would need a decent force to make it go... Just like in the real world. Quote STS - Scarlet Thread Studios AKA: Engineer Ken Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now! Link to comment Share on other sites More sharing options...
bandrewk Posted February 6, 2014 Share Posted February 6, 2014 Leadwerks uses the metric system already. 1.0 unit = 1 meter. To convert a velocity to Km/h, divide it by 1000. Is this still valid for Leadwerks 3.0+ ? It should be written somewhere easy to find. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 6, 2014 Share Posted February 6, 2014 It really depends on your own interpretation. 1 unit might as well be 1000 meters if you are making a space game. Just use a standard that you are comfortable with. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted February 6, 2014 Share Posted February 6, 2014 Yes and no. I think some things like the character controller and physics work best within a given range, whatever that is. Navigation especially is very limited. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.