Announcement

Collapse
No announcement yet.

Advanced Swinging

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Advanced Swinging

    Hey, I'm making swinging and I'm trying to get the result Insomniac Games got in their game "Marvel's Spider-Man". I already have the swinging from a pendulum part, I just want to make sure the character can't touch the ground when swinging. Something like this https://www.youtube.com/watch?v=BneJ2mtGTy0&t=41s

    #2
    Ray trace to the floor and force a height increase when below a certain length. Trace for one frame and set 2 variables, "current pendulum height" and "target pendulum height", then use a timeline to lerp from current height to target height. Only thing I see going wrong is if new geometry gets in the way, then you'll want to interrupt the timeline.

    Comment

    Working...
    X