When is custom collision coming?

Fredrik BixoFredrik Bixo Member Posts: 239
edited March 2012 in Working with GS (Mac)
Yes as the titel above im wondering when custom collision shape is coming to gamesald. Im stuck on my game where I need a rectangle with rounded corners collision shape. Is it possible to make that without custom collision shapes? If so, how can I make it? :)

Best Answer

Answers

  • MotherHooseMotherHoose Member Posts: 2,456
    a rectangle with rounded corners collision shape can be done!

    in rectangleActorAttributes: Physics > Collision Shape > Circle

    image MH
  • Fredrik BixoFredrik Bixo Member Posts: 239
    yeah but I think what you mean are a circle not an rectangle with rounded corners. But Thank you for the help :)
  • MotherHooseMotherHoose Member Posts: 2,456

    no, no … trust me on this one! @gameARN

    A rectangle shape with rounded corners!

    from the Cookbook:
    "collision shape: an actor can have a rectangular or circular collision area. For a circular collision area, it is the largest circle that can fit entirely in the dimensions of the actor."

    which rounds the corners off …

    try it!

    image MH
  • CloudsClouds Member Posts: 1,599
    edited March 2012

    no, no … trust me on this one! @gameARN

    A rectangle shape with rounded corners!

    from the Cookbook:
    "collision shape: an actor can have a rectangular or circular collision area. For a circular collision area, it is the largest circle that can fit entirely in the dimensions of the actor."

    which rounds the corners off …

    try it!

    image MH

    A circle with the corners (!!?) rounded off is a circle ! ;)

    Honestly, gameARN is right, applying a circular collision area to a rectangle gives you a circular collision area - rather than a rectangle with rounded corners.


    Here is a square with a circular collision area applied (the collision area is in red):


    image


    Here is a rectangle with a circular collision area applied (the collision area is in red):


    image
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited March 2012
    Yeah taking an actor, setting the collision shape to circle, and stretching it out to make a rectangle does not stretch out the circle collision area. It will leave a circle collision area in the middle of the actor.
Sign In or Register to comment.