I am new to LiveCode. Can anyone please tell me what is the need of collision detection and why we use it in programming?
I have followed the pdf that came with animation engine and in that we have a method of detecting collision. In that whenever collision occurs the field shows about the collision. Now what is the use of that information available in field and how and where can it be put to use.
Need of Collision detection
Moderators: heatherlaine, kevinmiller, robinmiller, malte
Re: Need of Collision detection
Collision detection is good to make sure an object does not go through another object.. This is useful in a game situation where you do not want your character to walk through walls (unless they are a ghost I guess )
Not too certain what information appears in the field, but it is probably just some feedback that Malte has decided to display to show that something is happening.. What you do with it is your choice..
Not too certain what information appears in the field, but it is probably just some feedback that Malte has decided to display to show that something is happening.. What you do with it is your choice..
Re: Need of Collision detection
Thnx Shaosean...
Can you tell me how to do that? How to prevent object to not go through other object?
Can you tell me how to do that? How to prevent object to not go through other object?
Re: Need of Collision detection
When you detect a collision, you stop moving the object