Try my new website:
www.urcho.com
- the new SIMPLE social network
Sign up
|
287
members |
114
snippets
Search for:
ALL
POPULAR
File Controls
Multiplayer Code
2D Effects
3D Effects
Oldskool demos
Basic Functions
Maths/Physics
Sound
Tutorials
Misc
Username:
Password:
Sign up
Oval Point Collision (sqr)
[
back
]
Author:
Nebula
| Viewed:
492
times | Language:
BlitzBasic 3D
| Category:
Maths/Physics
Function circlecollision(x1,y1,x2,y2,w) ; X1 = collision x coordinate. ; Y1 = collision y coordinate. ; X2 = oval x location. ; Y2 = oval y location. ; W = Width/ Height of the oval. x2=x2+w/2 y2=y2+w/2 If Sqr((x1-x2)^2+(y1-y2)^2) < w/2 Return True End Function
Author Comments:
Collision in a circle.
Login or
create an account
to comment on this snippet