Pular para o conteúdo principal

Pesquisa

Accurate grid based movement?

  • Magus0Mind00

    I don't think this is currently possible. You could simulate this by using a controller gadget and a timer with a mover: Button press->1 second timer -> object moves for timer duration. This way each button press moves the object by a set amount (controlled by force amount of mover).

  • davidnorth100

    You can't make something move to a specific position instantly unless you can have an existing tag in the scene at a desired position so that you can use that with a teleport gadget. You can however get an object to move quickly to snap into position based on some grid increment. Basically you'd get the current position of the object and calculate the snapped position with round etc. then set an advanced movers speed to force the object into that position. One way is to use the difference between where you want it to be and where it is as the speed in each dimension. Then the further it is away from the snapped position the faster it'll move towards it.
    Hopefully in future we'll be able to set a transform directly on an object.

  • davidnorth100

    Actually you probably mean to use dpad to increment the position or something like that so its easier than what I was describing. You just need to increment your target position on each button press then and not worry about the current position at all. I could make a demo of this if its helpful.

Por favor, entrar para comentar.