Interpolate and collide?

fzeedfzeed Member Posts: 247
edited November -1 in Working with GS (Mac)
I have an actor that collides just fine. But if i put a rule in that does:
if width=48
interpolate to 32

if width=32
interpolate to 48

to make it appear like its breathing, suddenly it doesn't detect and collision???? Is that normal? I have 2 other actors. One the alpha interpolates and the other has the rotation interpolates, and the collisions work just fine for them.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah the collosion wont be detected while there interpolating there size :(
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You could constrain the X and Y of an invisible actor to that one, and have the collision in there.
  • fzeedfzeed Member Posts: 247
    Man, that really sucks!!! Thanks for your advice.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    or you could use magnitude to fake a collision.

    if magnitude is less than the actor's size
    collide

    that's what I'm doing in my new game. keeps the physics count down as well, which means better performance.
Sign In or Register to comment.