Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

[ad_1]

I’ve a big asteroid object, and I wish to use physics2D to have smaller objects be drawn to it as if by gravity, and are available to relaxation on its floor. The asteroid itself can be a dynamic physics2D object to permit it to float round, and obtain transferred momentum from impacts.

My present association on the asteroid object is:

  • Smaller CircleCollider2D on floor of asteroid asset for collisions
  • RigidBody2D
  • Bigger CircleCollider2D for level effector
  • PointEffector2D with damaging pressure to draw objects

Different objects are simply colliders and rigidBody2D’s

The issue is that when an object involves relaxation on the floor of the asteroid, because it has not reached the precise level effector coordinates, a pressure continues to be utilized to that object within the path of the purpose effector ie heart of the asteroid. This pressure in flip will get imparted on to the asteroid, and if a number of objects construct up in a sure path the asteroid will transfer in the wrong way.

How can I approximate the conduct of an actual asteroid whereby an object will impart some momentum on impression, however as soon as they arrive to relaxation the forces attain equilibrium?

Clearly in actual life the middle of gravity could be barely altered, I do not want that stage of precision. I simply don’t need the asteroid zipping round.

I’ve tried utilizing the collision masks / matrix. I cannot discover a configuration that each permits the asteroid to collide with the smaller objects, however not obtain the pressure imparted by them after colliding.

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *