Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

[ad_1]

I am now doing a racer on rails like “Outrun”. I do have a cool Script from web that makes the digicam and the participant observe the Waypoints. The Waypoints are Set off shapes. I’ve a stage generator that generates street with these Waypoints. Nevertheless once I hit play and the street is generated, most of the Waypoint triggers have totally different rotations than within the prefab objects they stem from.
Like this :
enter image description here

enter image description here

They appear to vary in dimension too. I’ve a suspicion that it’s related to some form of parent-child scaling drawback, however I can not actually discover it. I do want so as to add waypoints of newly generated chunk to the waypoint record for digicam motion. So it is vitally essential to have the ability to simply discover all waypoints of the chunk below one dad or mum for instance.

Have anybody handled this drawback ?

EDIT. 25.11.23
I’ve a piece hierarchy that include all particular person chunks that may be spawned:
Chunks

The extent generator has an inventory of scriptable objects that include all potential chunks variants that begin and finish in a correct route:

enter image description here

They’re spawned as they’re there is no such thing as a rotation at this level.
The one rotation and scaling that happens is within the chunk asset itself. I scaled the bottom of the chunk from a dice and made different objects it is youngsters:
enter image description here

Which suggests all the kids objects have this fraction quantity scaling, like with the street :
enter image description here

Which additionally has some rotation, however at all times spawns accurately.
However some checkpoints usually are not spawning accurately in any respect. As proven above.
That is their construction:
Parent Obj
CheckPoint

The primary one is at all times tilted in some unusual route. The lean modified as soon as after a rescale within the chunk asset however apart from that it stays fixed.

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *