Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Rotation&collision (https://forums.graalonline.com/forums/showthread.php?t=64479)

projectigi 03-02-2006 01:24 AM

Rotation&collision
 
any good way to make a collision for a rotated image?
currently i think of getting the edges with sin() and cos() and then calculating the distances between them
then calculate width/height
then start setting up a setshape2 array by checking every point if its on/in the car, if so set it to 22 if not set it to 0

any better way?

SilentOne1988 03-04-2006 11:11 AM

Google Rotation Matrices.

projectigi 03-04-2006 02:49 PM

so? lol i asked for collision with a showimg xP


All times are GMT +2. The time now is 12:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.