[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Skyline Forums • View topic - How to check the collision between 2 Objects
Help with your scripting

How to check the collision between 2 Objects

How to check the collision between 2 Objects

Postby StarFire » 10 Nov 2012, 12:04

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: How to check the collision between 2 Objects

Postby StarFire » 10 Nov 2012, 12:13

At the moment collisions are an area that has not been developed far, as we have concentrated on the editor side of development. There is a basic cursor ray-cast to world but no entity to entity version. I will start looking into various methods of collision and post the results here ;)
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: Как проверить столкновения между 2 Объектов

Postby ant0N » 10 Nov 2012, 12:36

OK! I look forward to
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Как проверить столкновения между 2 Объектов

Postby ant0N » 10 Nov 2012, 15:07

consider this scenario:
function Collision(Entity, force, speed)

end

This function is called each time when the subject is confronted with something.
The Entity if the Entity = 0, then in a collision with any object will be called by this function.
force - the force at which is called by this function. If force = 0, then any power.
speed - the speed at which this function is called. If speed = 0, then any speed.
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: How to check the collision between 2 Objects

Postby StarFire » 16 Nov 2012, 15:08

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: Как проверить столкновения между 2 Объектов

Postby ant0N » 16 Nov 2012, 15:28

Well finally I wait for a reply :) . Still don't really understand how it works...
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: How to check the collision between 2 Objects

Postby StarFire » 16 Nov 2012, 15:52

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: Как проверить столкновения между 2 Объектов

Postby ant0N » 16 Nov 2012, 16:18

Yes, please!
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: How to check the collision between 2 Objects

Postby StarFire » 16 Nov 2012, 16:53

Ok, when I get some time I will write this up as a tutorial , added to our to-do list ;)
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


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 2 guests