Collision not working on a constrained object

lordsprinkleslordsprinkles Member Posts: 19
edited November -1 in Working with GS (Mac)
I have a smaller actor constrained to a larger actor and I want to have the smaller actor collide with the ground but it doesn't seem to work.

To test it I did this I made 3 actors: Level Collision, Actor 1, Actor 2

I made Level Collision the ground. I then constrained Actor 2 to Actor 1 so that they are attached, using this tutorial: http://gamesalad.com/wiki/how_tos:gsc_follow_another_actor

I added an accelerate attribute of 270 degrees with an accelerate of 300 on Actor 1 to simulate gravity. Then I added a collision attribute to Actor 2 so that when it collides with Level Collision it will bounce.

Upon previewing this the actors fall right through Level Collision, but if I put the collision attribute on Actor 1 it works. Does this sound correct?

-Thanks

Comments

  • lordsprinkleslordsprinkles Member Posts: 19
    Okay, I sent it. I wouldn't mind someone from Gamesalad looking into this. You can test it in about 5 minutes.
  • lordsprinkleslordsprinkles Member Posts: 19
    Omg tshirtbooth you're brilliant. I could just swap the two and use the small collision as the main actor and simply attach the other actor to display the animations. I don't know 100% if that's going to work correctly but it's certainly given me some hope!
  • VoidedSkyVoidedSky Member Posts: 1,095
    I have the same Problem, I have a block that is constrained at some times, then other times it is not(it is part of a level designer in a game). When I have other blocks collide with the constrained one, the block either falls right through, or flies off super fast in a random direction, any ideas.
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    I noticed the same thing with a interpolating actor, not constraining. I was playing with a "bounce down" like game and the platforms were interpolating toward the top of the screen. The player actor with 270 acceleration would only roll along and then shoot past the platform, but not bounce...
  • VoidedSkyVoidedSky Member Posts: 1,095
    To clarify, the constrained actor isn't moving, it doesn't have good collision, but it doesn't move. The actors that collide with it go crazy.
  • VoidedSkyVoidedSky Member Posts: 1,095
    has anyone else had this problem, Bad colliding with constrained position? And does anyone have a solution?
  • ckck Member Posts: 224
    Yes, I'm having this problem now, in fact. I have 40 actors sitting over trap doors, and I want slide open, letting the actors fall through. I'm constraining the doors to their Y positions (I'm using gravity in the scene), and constraining them to their x position to keep the balls from pushing the sliding doors open.

    The balls just crazily pass straight through the doors. Don't know why.

    These same actors (the door) were being used as the floor - they used to be immovable and unconstrained. When that was the case, the balls did not pass through them.
  • VoidedSkyVoidedSky Member Posts: 1,095
    Here, try this, Make the actor non moveable, then just use the move to command to move them out of the way. It should work!
  • ckck Member Posts: 224
    Thanks CTM!
Sign In or Register to comment.