Skip to main content

Questions tagged [physics]

Relating to the motion of objects through space and time. Including concepts such as acceleration (thrust and gravity), mass, collision response, friction and more.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

How do you setup a ramp with an existing tile-set in Unity?

(Beginner questions) How do you setup the ramp with the tiles in unity? The graphics and the behavior? I've been checking this free tileset: In the image it has connected ramps I cannot seem to get ...
AturSams's user avatar
  • 10.6k
1 vote
0 answers
27 views

how to implement the vines in animal well

the vines in animal well display pixel perfect deformation when the pc moves through them. they also display rope physics but do not appear to be implemented by jointed segments of physics rigidbodies ...
mortsini's user avatar
3 votes
1 answer
59 views

Should physics substepping include the entire update or only collision resolution + constraint resolving?

I'm working on a simple physics simulation and I want to use substeps to improve stability. I’m unsure whether I should apply substeps to the entire physics update or just to collision resolution. ...
NoName123's user avatar
  • 131
0 votes
1 answer
26 views

Best way to sync PhysicalObj to player headset position?

I’m in the process of designing a threejs-based webxr engine for simple VR games. Right now, I’m working on implementing physics with cannon-es, but I’m struggling to figure out how to sync the player’...
Blue Herring's user avatar
4 votes
1 answer
200 views

Train simulator - approach to cars movement

I'm prototyping a train simulator and running into design issues with physics and train car movement. The scope is similar to games like Run8, SimRail, or Derail Valley. Requirements: Realistic train ...
b2soft's user avatar
  • 143
0 votes
1 answer
92 views

How to instantly stop when moving the character with AddForce?

I made character movement using AddForce. But I don't understand how to get the desired effect. I need that when I release a movement key (for example WASD) the ...
Friendlyap's user avatar
1 vote
0 answers
107 views

How to conserve momentum in Unity?

I tend to use a lot of 2D physics based (rigid-body based) character movement in Unity, and despite lots of tweaking, I can never seem to use conservation of momentum. I’d have to manually program in ...
Runox's user avatar
  • 11
1 vote
1 answer
101 views

How to propagate linear/angular momentum to parts when a 2D tile-based ship is broken into pieces?

I have been working on a project in the Godot engine about creating tile based spaceships. It works great and I find it very interesting. My biggest issue though is correctly simulating disconnections,...
TizWarp's user avatar
  • 25
0 votes
1 answer
71 views

Lerping Time.timeScale causes laggy physics

I am using unity as my game development platform. I was trying to create script that could interpolate time scale to achieve a flurry rush. The code below is my attempt: ...
pockspocky's user avatar
1 vote
0 answers
69 views

How to properly handle ball movement in a soccer game?

I'm building a soccer game (or trying), and currently running into a problem when trying to achieve the desired pass/shot. For projectile motion, it's fine, but trying to predict rolling movement is ...
E F's user avatar
  • 11
0 votes
0 answers
63 views

Does anyone have the detailed breakdowns of physics in NES/SNES Mario games?

I'm working on basic clones of the classic Mario games I played on that Wii SNES emulator when I was younger to learn classic hardware emulation, platformer development, Monogame, etc. I found this ...
PraiseSolek's user avatar
0 votes
0 answers
16 views

Toxiclibs softbody physics issue with jittering under weight

hopefully this is alright to post here. I'm learning to code and working on a thing (actually trying to reproduce this https://www.instagram.com/juhani.halkomaki/reel/DGFpqfCNgZe/ ) I have created a ...
spaciousmind's user avatar
0 votes
1 answer
72 views

How to get from torque to angular acceleration?

Wikipedia says: In two dimensions, angular acceleration is a number with plus or minus sign indicating orientation, but not pointing in a direction. The sign is conventionally taken to be positive if ...
SK19's user avatar
  • 123
0 votes
0 answers
71 views

My car keeps flipping over (or drifting uncontrollably)

I am experimenting with 3D car physics in Unity and want a good car for a racing game. I've been trying to implement turning (and drifting) for this car. I want the car to automatically drift at high ...
ak64_k15's user avatar
1 vote
1 answer
180 views

Collision detection and physics in a 2d pixel platformer

I'm reworking physics in a 2d action platformer I'm developing (no engine, c++ / sdl). Here's the general movement logic for all characters: I calculate the offset I need to apply to the character I ...
SavedowW's user avatar

15 30 50 per page
1
2 3 4 5
164