Jump to content

Drag element inside a tube


Recommended Posts

PixiJS doesnt have anything related to physics in the package :(

However the task itself will be much easier if you imagine that tube is smaller by R, and those circles are bigger by R, where R is your character circle radius - that way you'll have to check whether point lies in a shape , and pixi has it.

Link to comment
Share on other sites

Thank you for your reply;

if you intend physics in sense of gravity or similar, i don't need it, since i mean the map as top view, and i need to constraint the 2d moves.

Anyway can please tell me the api to use for "whether point lies in a shape "?

Moreover i'm not forced to use PixiJS, can you suggest another framework capable for my needs?

Thank you!

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.

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.


  • Recently Browsing   0 members

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