reepblue Posted August 19 Share Posted August 19 The following collision types that aren't exposes to lua from my testing. COLLISION_DEBRIS COLLISION_PROJECTILE Ultra Engine - Best game engine for VR optimized for fastest virtual reality 3D performance --Initialze Steam (optional) --if not Steamworks.Initialize() then return 1 end --Load FreeImage plugin (optional) local fiplugin = LoadPlugin("Plugins/FITextureLoader") --Get the displays local displays = GetDisplays() --Create a window local window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR) --Create a framebuffer local framebuffer = CreateFramebuffer(window) --Create a world local world = CreateWorld() --Load a map local mapname = "Maps/start.ultra" local cl = CommandLine() if type(cl["map"]) == "string" then mapname = cl["map"] end local scene = LoadMap(world, mapname) local box = CreateBox(world) box:SetCollisionType(COLLISION_DEBRIS) while window:Closed() == false do --Garbage collection step collectgarbage() --Update the world world:Update() Steamworks.Update() --Render the world to the framebuffer world:Render(framebuffer) end Steamworks.Shutdown() Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Solution Josh Posted August 19 Solution Share Posted August 19 Added these... 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...
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.