Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 2D rigid body component #92

Open
kianmolani opened this issue Jul 15, 2022 · 0 comments
Open

Add a 2D rigid body component #92

kianmolani opened this issue Jul 15, 2022 · 0 comments

Comments

@kianmolani
Copy link

kianmolani commented Jul 15, 2022

This issue will focus on creating a 1D or 2D rigid body line or box. Said rigid body will initially be constructed in a 2D absolute reference frame / world environment. The component will at least possess the following parameters: s_start, s_end, w (initial angular velocity), a (initial angular acceleration), and m (mass) or rho (density). The parameters s_start and s_end are two points, and a vector will be drawn between them, thereby defining the spatial extents of our rigid body. This "two-point" vector implementation differs from Modelica's implementation of the same component. In the Modelica implementation, one point is used to define the position of the origin of a new frame of reference, and a second point is used to create a vector from the origin of this new frame. Having components possess their own reference frames in this way presents a series of advantages, but for now I will keep my implementation as simple as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant