Joystick controlled actor do not collide properly with "floor".
GreenfroggGames
Member Posts: 224
My joystick controlled actor goes through the floor after collision. Dont know how to fix this, please help.
I've attached the demo file if someone could take a quick look, I would really appreciate it
Comments
@Socks maybe you have a solution to this one, need some brilliance
I'm not sure what the issue is, the actor 'player' didn't go through the floor (the lower 'wall' actor) when I previewed the project ?
The Move Controller's movement was very strange, it was much better after deleting the Offset Constrain actor.
@GreenfroggGames I agree with @Socks about the movement. That Offset Constrain actor shouldn't be necessary. You know the offset from the camera re-sizer actor, it shouldn't be necessary to have a separate offset attribute. I'll really try to get around to looking at the whole scrollable/universal issue soon.
To fix your current problem, though, try enabling "Better collisions" in the player actor.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Socks It's fine when the actor rotation is at 90 or 270. But at let's say 120 degrees and moving down/left to right (or right to left) across the floor, the actor goes through a bit. @Armelline yeah that offset is wrong, forgot to change that. Better collisions didn't do anything I'm afraid
Is it possible that the rotation constrain is causing the collide behavior to not work properly? Is there a a workaround the constrain rotation behavior?
How do you want the player actor to rotate ?
@Socks if the controlled actor was a ship, I want it to rotate so that its nose always points in the same direction as the joystick is pointed
A ship ? As in a boat ?
Rotate to Angle:
Angle: game.controller rotation center -90
Speed: 500
Relative to Actor
RTC and SOD = off (unchecked)
@Socks I was thinking about a spaceship but its not important, a boat will do:) > @Socks said:
This only works when rotating CCW, when rotating CW it starts to twitch.
It worked fine for me.
@Socks Mine is ok as long as I rotate the joystick slowly, when I move it faster it's like it gets stuck
@Socks I restarted GS and now it works! Thanks