Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
question about trigger_range #106993
01/15/07 15:07
01/15/07 15:07
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
hi,

from the manual:
The trigger ranges are boxes with radius trigger_range around the origin of the moving entity, and around the bounding box of the triggered entity

to make things simple for my question pretend both entities bounding box is a length of 1 and both trigger_range values are a value of 1.

I want to show a box representing the trigger range for both entities.

does this mean that the box for the moving entity would have length of 1
and the box for the triggered entity would have a length of 2?

thanks,
LazyDog


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: question about trigger_range [Re: LazyDog] #106994
01/16/07 09:40
01/16/07 09:40
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
Yes. I haven't programmed the trigger event, but I'd also interpret the manual that way.

Re: question about trigger_range [Re: jcl] #106995
01/19/07 03:37
01/19/07 03:37
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
I was wondering if you could explain your algorithm for generating your bounding box for the trigger range. The reason I ask is that I'm having problems matching what I calculate for the trigger range visually and what is actually triggering. I must be calculating something wrong.


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: question about trigger_range [Re: LazyDog] #106996
01/19/07 09:32
01/19/07 09:32
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
As I understand the manual, the bounding box has a size of both trigger ranges plus the bounding box of the triggered entity. If both entities are within that bounding box, the event will be triggered. Additionally, both entities need to be in the same level sector. A level sector is 1/32 the level size, so on very small levels this might affect triggering also. Make your level large enough so that 1/32 is bigger than your trigger bounding box.


Moderated by  old_bill, Tobias 

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