Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 09:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Collision+Gravity

Discussion on Collision+Gravity within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Terrat's Avatar
 
elite*gold: 130
Join Date: Apr 2012
Posts: 1,173
Received Thanks: 670
Collision+Gravity

Hallo,
progge .gerade aus fun und zum üben super mario nach.

Bin jetzt an den Punkt angekommen wo ich die Gravitation und die Collision proggen. will. Wie sollte ich das am besten machen ? Ein extra thread ?

Noch ne neben Frage:
Derzeit frage ich die Keys mit GetAsyncKeyState ab.
Gibt es eine schnellere Möglichkeit?
Terrat is offline  
Old 12/14/2014, 21:28   #2
 
KingwondA's Avatar
 
elite*gold: 312
Join Date: May 2013
Posts: 449
Received Thanks: 45
Willst Du also den Sprung proggen. ?
Wegen der Collision und der Gravitation?

Falls ja, dann schau Dir mal das Video an.
Sollte helfen:

und dass hier:
KingwondA is offline  
Old 12/16/2014, 00:29   #3
 
Schlüsselbein's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 1,137
Received Thanks: 869
Wenn du Gravitation simulieren willst, solltest du vielleicht zu einer vorhandenen Bibliothek greifen, welche die Physik implementiert.

Wenn du es komplett selber machen willst, solltest du dir die wichtigsten DGLs zu den Teilgebieten raussuchen und anhand derer dann die Bewegungen deiner Objekte numerisch berechnen (zum Beispiel mit dem Runge-Kutta-Verfahren). Empfehle dir dafür aber für die ersten Prototypen beispielsweise Matlab oder Python mit numpy und matplotlib - sonst schlägst du dich mehr mit Drumherum, als mit der Mathematik dahinter rum.
Schlüsselbein is offline  
Old 12/16/2014, 20:22   #4
 
Terrat's Avatar
 
elite*gold: 130
Join Date: Apr 2012
Posts: 1,173
Received Thanks: 670
Die Gravitation habe ich schon selber gemacht. Hänge aber immer noch an der colission.
Terrat is offline  
Reply


Similar Threads Similar Threads
Collision
07/20/2014 - SRO Private Server - 7 Replies
Is there a way to edit the NVM files from joymax? We already can add objects (.o2 map), but for add a collision the nvm must be edited (from server, and client to avoid visual bugs). An example (ty Synx): The SOUTH DOOR from BAGHDAD. <- Attached download So obviously there is a way to edit those files, but could someone share it with us?
Algorithmus [19.09] [Weapon Gravity, Gravity, STW, No Water, silent walk, Extra ]
01/02/2013 - WarRock Hacks, Bots, Cheats & Exploits - 67 Replies
Algorithmus D3D 2.2 Change Log 19.09.11 (v 2.2) ADD Fuctions: NoWater Run Speed Sprint Speed Gravity(MoonJump) Weapon Gravity
Navmesh X, Y Collision
08/03/2011 - SRO Coding Corner - 21 Replies
Soo lately I've been working on the navmesh files and I used drew's edxNVMViewer for this. But I've got a little stuck right now. For my project I'm using the nvm.h and nvm.cpp to load the navmesh file and I'm saving it in my memory. Everything goes fine and I get the correct Z position from the navmesh but I can't figure out how to get the forbidden area's in the navmesh. Like when a character walks up a mountain it will stop at some points since there is a collision. How am I able to...



All times are GMT +1. The time now is 09:01.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.