Raised This Month: $51 Target: $400
 12% 

rotate sized entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diwat[#26]-Metal
Junior Member
Join Date: Oct 2009
Old 01-10-2011 , 05:14   rotate sized entity
Reply With Quote #1

Hy

I have got a problem:
I want to place rotated object on a map.
To do this, i create entity, set coordinates and size, but if I want to rotate this, de setted size don't rotate.
Ex: If I place a box with ( -10, -10, 0 ) (50, 10, 40) and rotate 90 degress, the size still.
How can I fix it? I must set size, with another function?
Diwat[#26]-Metal is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-10-2011 , 05:58   Re: rotate sized entity
Reply With Quote #2

I'm not sure, but you could try setting size after rotating the entity.
__________________
hleV is offline
Diwat[#26]-Metal
Junior Member
Join Date: Oct 2009
Old 01-10-2011 , 06:57   Re: rotate sized entity
Reply With Quote #3

Yes, but how?
If I rotate this object with 45 degress, how can I determinate the good size? This is a rotated box, and setsize make a solid box.

I specify my problem:
So I want to take objects (Car, tree etc) on my map, but if I make, I can go through it. I set this ent with set_pev(iEnt, pev_solid, SOLID_BBOX)) and I must set a size for fix this problem.

I want to make a solid entity, but if I rotate, the object still solid with good hitboxes
Diwat[#26]-Metal is offline
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 -4. The time now is 02:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode