Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-02-2006, 01:24 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
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?
__________________
Reply With Quote
  #2  
Old 03-04-2006, 11:11 AM
SilentOne1988 SilentOne1988 is offline
Banned
Join Date: Feb 2006
Posts: 67
SilentOne1988 is on a distinguished road
Google Rotation Matrices.
Reply With Quote
  #3  
Old 03-04-2006, 02:49 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
so? lol i asked for collision with a showimg xP
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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