collision between two entitys?
Hi!
How do I detect if two entities collide? |
Re: collision between two entitys?
Use register_touch() with the entities classname.
|
Re: collision between two entitys?
If you want simple function, you can use this
PHP Code:
|
Re: collision between two entitys?
But this function you would need to call very often, better to use register_touch and let the engine doing its job.
|
Re: collision between two entitys?
what if I have two entities with the same classname? Should I change them or is it some other way to find out if the player touches Entity1 or Entity2?
Rightnow, both of them have their classname set to "medicpack" but Entity1 is supposed to heal more then Entity2 so guess I should rename them "medicpack_large","medicpack_small" etc? |
Re: collision between two entitys?
either that use a var or w/e to check the amount of healing.
|
| All times are GMT -4. The time now is 18:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.