Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 772 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_trace USE_POLYGON not working with animated polygons #327379
06/06/10 08:32
06/06/10 08:32
Joined: Jan 2010
Posts: 40
Adelaide, Australia
Sub_Game Offline OP
Newbie
Sub_Game  Offline OP
Newbie

Joined: Jan 2010
Posts: 40
Adelaide, Australia
Code:
this_distance=c_trace(vector(camera.x,camera.y,30), vector(camera.x,camera.y,-30), IGNORE_ME | USE_POLYGON | SCAN_TEXTURE);


I'm using this code to determine the surface of my ocean which is an animated model. The c_trace works fine without animation, but when I animate is only returns the original polygon positions.

How do I determine the real polygon positions?


A7 Commercial
First person submarine combat simulator project
http://alexanderforeman.webs.com/fightersubgame.htm
Re: c_trace USE_POLYGON not working with animated polygons [Re: Sub_Game] #327384
06/06/10 09:00
06/06/10 09:00
Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
Harry Potter Offline
Expert
Harry Potter  Offline
Expert

Joined: Dec 2002
Posts: 3,363
Vindobona (Ostarichi)
You can use c_updatehull.
It recalculates collision hulls for the given entity to match the vertex positions of a certain frame.

Re: c_trace USE_POLYGON not working with animated polygons [Re: Harry Potter] #327388
06/06/10 09:14
06/06/10 09:14
Joined: Jan 2010
Posts: 40
Adelaide, Australia
Sub_Game Offline OP
Newbie
Sub_Game  Offline OP
Newbie

Joined: Jan 2010
Posts: 40
Adelaide, Australia
Thanks for the quick response. I'll try it out!


A7 Commercial
First person submarine combat simulator project
http://alexanderforeman.webs.com/fightersubgame.htm
Re: c_trace USE_POLYGON not working with animated polygons [Re: Sub_Game] #327422
06/06/10 11:10
06/06/10 11:10
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Yes, that works. But c_updatehull is very slow, so you don`t can use it every frame


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1