For any feature requests to either the Skyline Engine or the websites and forums please leave your suggestion here.

Collision volume detection

Collision volume detection

Postby SpiderMack » 12 Nov 2017, 23:26

Hi,

Another feature i use in gameplay a lot : collision detection volumes

For example you can have rectangle or sphere shape collision volume functions you can use with some parameters :
- position shape
- dimension shape
- layer collision to detect only

The function will return a list of all game objects colliding with that sphere or rectangle collision volume.

It's based on performance because it uses physic engie to detect colliding game objects, so it does not iterate over your hundred game world entities.

There is multiple usage :
- get all ennemies in some zone, or around some position within some distance
- detect all covers around
- AI get all strategic position or items in some zone or around player
...
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Collision volume detection

Postby SolarPortal » 13 Nov 2017, 10:13

You should check out the "AI Sensor" action as this can return all colliding entities in one lua table and it uses a timer to save some CPU cycles.

Then there are the PhysX Trigger volumes which return the id's of entities that enter, stay and exit the volume too...

This is all doable on your current version.
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 Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests

cron