Moving platforms using my own code

riquid

New member
Hi. I have a level that needs moving platforms but I need them to follow a spline so the out of the box opsive code for moving platforms just isn't going to work for me. What will I need to do in order to stick the player to the platform while it's moving?
 
There are a couple of things:

1. The object should be on the MovingPlatform layer
2. Your component should implement the IDeterministicObject interface. This will ensure the platform updates at the correct time. Take a look at the MovingPlatform component for an example of the implemented methods. Your component will need to register itself with the DeterministicObjectManager.
 
Top