DigitalHax Posted April 2, 2012 Posted April 2, 2012 Hey. I want to make a vehicle in C++, and I am having a bit of trouble figuring out the commands. I have looked at the lua example, but I am still having a bit of trouble. It is mostly the wheels i cant figure out though. Can anyone provide a bit of example in C++? Thanks in advance, DH Quote Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5. Life is too short to remove USB safely.
Marleys Ghost Posted April 2, 2012 Posted April 2, 2012 Maybe if you post what you have so far, others may be able to help sort out the trouble spots so to speak. 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"
DigitalHax Posted April 2, 2012 Author Posted April 2, 2012 TBody body=CreateBodyBox(10,4,6.5); SetBodyMass(body,1.5); SetBodyGravityMode(body,-10); PositionEntity(body,Vec3(1200,200,75)); EntityType(body,1); SetEntityCallback(body,(byte*)EntityCollisionCallback,ENTITYCALLBACK_COLLISION); TVehicle car = CreateVehicle(body); Uh. Thats it. Quote Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5. Life is too short to remove USB safely.
Marleys Ghost Posted April 2, 2012 Posted April 2, 2012 http://www.leadwerks.com/werkspace/topic/1020-vehicle-implementation/page__hl__tvehicle 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"
DigitalHax Posted April 2, 2012 Author Posted April 2, 2012 How can I set the mass of a mesh in C++? That uses leo. Quote Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5. Life is too short to remove USB safely.
Marleys Ghost Posted April 2, 2012 Posted April 2, 2012 you're welcome. 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"
DigitalHax Posted April 2, 2012 Author Posted April 2, 2012 Quote Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5. Life is too short to remove USB safely.
Pixel Perfect Posted April 3, 2012 Posted April 3, 2012 Just an observation: People are trying to help you, maybe you should show a little more gratitude when people answer rather than simply replying with new questions. They are not employed by anyone to do this, they do it in their own free time and most of them have had to find the very answers you are looking for the hard way, because there was no one with the answers at that time. Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++
Mumbles Posted April 3, 2012 Posted April 3, 2012 How can I set the mass of a mesh in C++? That uses leo. Meshes don't have mass, bodies do. Quote LE Version: 2.50 (Eventually)
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.