Jump to content

The preferred or standard actor movement


MackeyK24
 Share

Recommended Posts

When make a game and NOT using the default First person view type camera movement...

When you actually have to move a 3rd person view of a player or actor around...

Using mesh.moveWithCollisions or using physics imposter set linear velocity ???

How are you to handle things like Jumping using each one these types of movement ???

If using physics for all movement, what is the overhead of adding to physics state to every object in the would that your= should NOT pass thru ???

And does anybody know what up with the way mesh.moveWithCollisions auto raise and keep raised the mesh from the ground... nearly 2 units... There has to be some rhyme or reason for that... Right ???

Anyways... Any help soon these questions will better help me make default movement systems for BabylonJS Toolkit Made Games :)

And @Deltakosh and @Sebavan .. As always... I would luv to hear what you think about this stuff :)

 

Link to comment
Share on other sites

moveWithCollisions is clearly less precise than physics but also faster. It was initially designed for the camera to simulate the FPS view. It relies on an ellipsoid created around the camera (or the mesh in this case). Ellipsoid has a size of 2 units by default.

Collisions will always try to resolve inconsistency by moving objects away (hence the auto raise as I suppose your mesh was lying on the ground so the ellipsoid must have been deep into the ground).

 

Physics in the other hand can be more precise by using better impostors but also a bit more expensive depending on ground complexity

Link to comment
Share on other sites

20 hours ago, Deltakosh said:

moveWithCollisions is clearly less precise than physics but also faster. It was initially designed for the camera to simulate the FPS view. It relies on an ellipsoid created around the camera (or the mesh in this case). Ellipsoid has a size of 2 units by default.

Collisions will always try to resolve inconsistency by moving objects away (hence the auto raise as I suppose your mesh was lying on the ground so the ellipsoid must have been deep into the ground).

 

Physics in the other hand can be more precise by using better impostors but also a bit more expensive depending on ground complexity

Kool deal... I will probably focus on using PhysicsImposter then for third person control... Thats what unity uses anyway via Rigidbody Component.

Thanks @Deltakosh. :)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...