overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
128 stars 47 forks source link

Position in server script does not update value #925

Closed ReggaeRambo closed 2 months ago

ReggaeRambo commented 2 months ago

I want to build a fruit ninja like game, but facing the following problem:

It spawns fruits or bombs with velocity and gravity. When it reaches a lower bound in y-direction, they should disappear. The server script on the main-object caches all spawned fruit IDs in an array and loops through the positions of all spawned fruits by their ID.

The problem is, that the position is always the spawn-position/first-grabbed-position and it does not update, so they never get destroyed...

When the same script is run as a client script, the position gets updated properly!

scripts.zip

ReggaeRambo commented 2 months ago

Adding a new issue with changed folder content