[brlcad-tracker] [ brlcad-Patches-3531595 ] Adding simgrav.c & .h and function for rigid body force
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2012-06-03 02:31:55
|
Patches item #3531595, was opened at 2012-06-02 19:31 Message generated for change (Tracker Item Submitted) made by aldabest You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640804&aid=3531595&group_id=105292 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Al_Da_Best (aldabest) Assigned to: Nobody/Anonymous (nobody) Summary: Adding simgrav.c & .h and function for rigid body forces Initial Comment: The first function here uses F=(G*M*M)/R to work out the attraction force for objects within the simulation to each other. It stores this information, along with the index (sim_params->head_node->index, and so on) of the rigid bodies. I currently do not have the mass integrated here, and have put placeholder values in for now. My next task will be to fix that. I also need to do some work/learning about how the units are handled in brlcad to make sure that is consistent. Added in a call from simulate.c mainly for testing purposes, and to get sim_params into the function. Once fully implemented there will be a set of functions that will run every time the simulation steps, and will then change the velocities of the rigid bodies every time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640804&aid=3531595&group_id=105292 |