Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I move a player within a rotating cube?

Asked by 6 years ago

Hello, I´m developing a game in which a cube will be rotating while the players must stay as long as possible within it.

The problem that I have is that when the cube rotates, the player moves towards the cube making it impossible to fall.

¿How can I make the player stay in a side of the cube without moving upwards like as shown in the gif? Thank you!!

GIF: https://s1.gifyu.com/images/Help.gif

0
Shouldn't the cube rotate faster than that shown in the GIF - or does a similar effect persist? HelperScripting -4 — 6y
0
Yes, it goes faster and faster as time elapses.. but it gives me the same issue no matter what speed, actually when it goes faster the player even jumps when it reaches an edge to the next edge JPINAG98 2 — 6y
0
Instead of a cube, use a ball. hellmatic 1523 — 6y

2 answers

Log in to vote
0
Answered by
Wiscript 622 Moderation Voter
6 years ago

Increase the speed in which the cube is rotating. This will make it harder for the player to stay on and will prevent that from happening.

0
I believe the cube's rotation quickens as time elapses to increase difficulty of gameplay. HelperScripting -4 — 6y
0
It does the same thing no matter what speed I apply :/ JPINAG98 2 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

Ok, so I already solved my question thanks for your help anyways guys!

For future references, if you want to make a game where an object will be rotating and a player will be on that object, use BodyMovers to place and rotate the object instead of working directly with the position and orientation of that object.

Answer this question