Skyline Editor related tips n tricks!

PhysX Trigger

PhysX Trigger

Postby TattieBoJangle » 13 Sep 2015, 22:58

Is there anyway to have the PhysX TriggerVolume keep the texture it had or anyway you can turn an object into a trigger.
Case: CM Storm Trooper CPU: I7 5930k X99 Cooler: Noctua NH-D15 Graphics: Asus GTX 1080 Motherboard: Rampage Extreme V x99 Ram: RipJaws DDR4 3000mhz Storage: x2 SSD Crucial 500GB + x5 2TB Hdd PSU: Evga 1500w OS: Windows 10
User avatar
TattieBoJangle
Community Manager
Community Manager
 
Posts: 858
Joined: 26 Jan 2015, 00:15
Location: United Kingdom
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer
Skill: Great creative

Re: PhysX Trigger

Postby SolarPortal » 14 Sep 2015, 12:44

I was only able to change the trigger box material through script, here is a snippet:

Code: Select all
obj = 0;
function onInit(objID)
   sky.lprint("LUA: Script Active!");
   obj = objID;
end

function postInit()
   entity.setAdvancedMaterial(obj, "Geometry_Misc");
end


I know this seems a bit much, but we never thought someone would use a trigger box and want it visible lol :P
It should be an option on the action to keep original material. Maybes we can do this as it isnt a big task :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Skyline Editor

Who is online

Users browsing this forum: No registered users and 4 guests

cron