Help with your scripting

Turn off or Delete PhysX Trigger Volume

Turn off or Delete PhysX Trigger Volume

Postby CreativeOcclusion » 22 Nov 2015, 18:46

Is there a way to delete a trigger volume after exiting it?...tried entity.delete, but didn't work...I think it only deletes the cube but not the physics...
Thanks, CreativeOcclusion
User avatar
CreativeOcclusion
Skyline Warrior
 
Posts: 366
Joined: 22 Jun 2015, 19:34
Location: Texas

Re: Turn off or Delete PhysX Trigger Volume

Postby StarFire » 22 Nov 2015, 20:08

If the volume is spawned then use physics.removeBody(int objID, int bodyID) to delete it.
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: Turn off or Delete PhysX Trigger Volume

Postby CreativeOcclusion » 22 Nov 2015, 23:46

Thank you so much....This worked perfect....
Thanks, CreativeOcclusion
User avatar
CreativeOcclusion
Skyline Warrior
 
Posts: 366
Joined: 22 Jun 2015, 19:34
Location: Texas


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 4 guests

cron