-
Notifications
You must be signed in to change notification settings - Fork 2
IRigidbody
jsutlive edited this page May 17, 2023
·
2 revisions
This interface is responsible for physics application to individual components within physics objects. Specifically, this refers to nodes and edges.
Note all interface methods are considered to be public.
| Return Type | Method Name | Description |
|---|---|---|
| void | addForceVector | add a force to the resultant force of this object(Node) or its child objects (Edge)) |
| void | move | move this object to a new position defined by the previously calculated resultant force |
| void | moveTo | manually change the position of this object |
Click here for an example of how force calculation works in this model framework.