Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Eddie

So as 1.19, we have the object in the player .slopeStanding.
That being said, in a previous discussion I read through, Dominic said that the default is set to 45 degrees, but my character SLIDES down a 45 degree slope rather than stand as is supposedly defaulted.

I tried setting different values for the max and min of this object to no avail, so I was hoping if anyone could:

1) Further explain the .slopeStanding object (is 0 degrees to the east as is normally assumed in mathematics? Does the min being defaulted to 44 like the documentation mean that up to 44 degrees you will not slide and the max being 136 mean anything greater than 136 won't allow a slide? In which direction are the degrees going? Etc.)

2) Maybe explain how to make it so my character doesn't slide down 45 degree slopes, which are the first set of triangular collision tiles.

Thanks fellow developers,
much appreciated!

1 decade ago by StuartTresadern

ref #2 take a look at this thread : http://impactjs.com/forums/help/slope-bug

1 decade ago by Eddie

I&039;ve already looked over some of those references, but I'm not trying to add additional tile-checking code. It shouldn't be necessary according to Dominic's #.slopeStanding object.

1 decade ago by Eddie

Oh, I apologize Stuart, I just realized that the .slopeStanding object does in fact work (I tested my character for the .standing variable as he slid down a 45 degree slope vs. a steeper one and got true back on the 45 degrees and false on steeper ones, so I guess my issue is only going to be resolved by tweaking the engine or adding conditionals (as those references you mentioned did) so that when the standing is true on a slope, you don't slide. So thanks, I guess you were right from the beginning.
Page 1 of 1
« first « previous next › last »