トピック
raimondz raimondzz

Anyone have figure out how to handle collision with rotated sprites?

I saw in Cyburst that the diagonal lasers is just a single sprite rotated and scaled but I can't figure how to handle the collision box with sphitsp on that case.(Since the collision box doesn't rotate along with the sprite)
0そうだね
プレイ済み
返信[1]
親投稿
*J.P.* DEV NEWPICY3
I have always wondered this too..
0そうだね
プレイ済み
返信[2]
親投稿
*J.P.* DEV NEWPICY3
ooh yeah that's awesome...
1そうだね
プレイ済み
返信[3]
親投稿
SıмΞоп SimeonW
Here I just made a demo And deleted my comments trying to explain how its done.
0そうだね
プレイ済み
返信[4]
親投稿
SıмΞоп SimeonW
The key is [KE3V4QF]
0そうだね
プレイ済み
返信[5]
親投稿
Autz sonic-HD8765
I knew you had to "redefine" the collision box to rotate the points. I've readed about that sometime ago.
0そうだね
プレイ済み
返信[6]
親投稿
raimondz raimondzz
Thanks Simeon, that code helped me a lot. @Autz From my experience you can't rotate the collission box. This is always a rectangle.
0そうだね
プレイ済み