Skip to main content
refactor naming things
Source Link
Leggy7
  • 1.5k
  • 15
  • 32

What's a solid way to have a character stuck to another one?

I have a moving character (say followed) and I want a second one (say follower) to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the former characterfollowed and having the second characterfollower consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?

Edit:

Since I'd like to describe something more like to an edge case of a pathfinding algorithm, consider the following:

  • follower should always be at a fixed position related to followed
  • follower must not necessarily interact with the environment the way followed does

What's a solid way to have a character stuck to another one?

I have a moving character and I want a second one to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the former character and having the second character consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?

Edit:

Since I'd like to describe something more like to an edge case of a pathfinding algorithm, consider the following:

  • follower should always be at a fixed position related to followed
  • follower must not necessarily interact with the environment the way followed does

What's a solid way to have a character stuck to another one?

I have a moving character (say followed) and I want a second one (say follower) to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the followed and having the follower consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?

Edit:

Since I'd like to describe something more like to an edge case of a pathfinding algorithm, consider the following:

  • follower should always be at a fixed position related to followed
  • follower must not necessarily interact with the environment the way followed does
Tweeted twitter.com/StackGameDev/status/1177327280680505347
added 297 characters in body
Source Link
Leggy7
  • 1.5k
  • 15
  • 32

What's a solid way to have a character stickstuck to another one?

I have a moving character and I want a second one to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the former character and having the second character consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?

Edit:

Since I'd like to describe something more like to an edge case of a pathfinding algorithm, consider the following:

  • follower should always be at a fixed position related to followed
  • follower must not necessarily interact with the environment the way followed does

What's a solid way to have a character stick to another one?

I have a moving character and I want a second one to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the former character and having the second character consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?

What's a solid way to have a character stuck to another one?

I have a moving character and I want a second one to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the former character and having the second character consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?

Edit:

Since I'd like to describe something more like to an edge case of a pathfinding algorithm, consider the following:

  • follower should always be at a fixed position related to followed
  • follower must not necessarily interact with the environment the way followed does
Source Link
Leggy7
  • 1.5k
  • 15
  • 32

Make character following another

What's a solid way to have a character stick to another one?

I have a moving character and I want a second one to follow the first without chance of getting stuck into obstacles.

I thought that I could save every delta velocity vector of the former character and having the second character consuming one each frame after it reached its target's starting position.

More to say, dynamic obstacles could be an issue.

Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?