The online racing simulator
InSim Coordinates
(10 posts, started )
InSim Coordinates
Hi, I am devoluping a mod, this mod have a coordinates, Is possible to make options of coordinates for each circuit?

Somebody could to do, please?

Thx in advance, adn thanks for your time reading this post
I need that help me, is urgent, please
What does this have to do with insim?
You want someone to help you create a map, usable with the details from InSim? You're asking for an awful lot of work and unless someone has already done it I don't think you're gonna get it. You'd be better off making an InSim addon and driving the parts of the tracks you need coords for and mapping it using that?
Quote from the_angry_angel :You want someone to help you create a map, usable with the details from InSim? You're asking for an awful lot of work and unless someone has already done it I don't think you're gonna get it. You'd be better off making an InSim addon and driving the parts of the tracks you need coords for and mapping it using that?

What I want is that there were options of coordinates for each circuit, is truth that is so difficult?
I want to set options of coordinates for each circuit in InSim,

if (p.IsInSphere(0, 0, 0, 10))...
Quote from revolucio :I want to set options of coordinates for each circuit in InSim,

if (p.IsInSphere(0, 0, 0, 10))...

Ok, so you want to basically have conditional hooks that if a car enters a defined area on the map, you want to be notified?

This could get fairly expensive depending on how many of those "areas" you define. Basically you'd have to have something that listens to MCI packets and then takes all your defined areas and checks whether the coordinates of any of the cars in the MCI falls inside your coordinate. You're basically doing spherical collision detection on every MCI. There's some optimizations you can do to pre-qualify areas, but one way or another, you'll be doing a lot of collision detection. There isn't really a way around doing it by hand, since LFS will not do it for you.
Quote from sdether :Ok, so you want to basically have conditional hooks that if a car enters a defined area on the map, you want to be notified?

This could get fairly expensive depending on how many of those "areas" you define. Basically you'd have to have something that listens to MCI packets and then takes all your defined areas and checks whether the coordinates of any of the cars in the MCI falls inside your coordinate. You're basically doing spherical collision detection on every MCI. There's some optimizations you can do to pre-qualify areas, but one way or another, you'll be doing a lot of collision detection. There isn't really a way around doing it by hand, since LFS will not do it for you.

Can you create a example (Without the defined areas), please?

Thank you
Instead of doing this with MCI packets, you could use the new IS_AXO packet along with a marshal circle. About the only thing it would do is save on CPU processing and figuring where those coordinates would be. All this of course depends if the marshal circles are big enough and if LFS considers them "hit" when you drive into one.

I dunno really, just brainstorming.

InSim Coordinates
(10 posts, started )
FGED GREDG RDFGDR GSFDG