Skip to content

IRigidbody

jsutlive edited this page May 17, 2023 · 2 revisions

Interface IRigidbody

Introduction

This interface is responsible for physics application to individual components within physics objects. Specifically, this refers to nodes and edges.

Methods

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

Examples

Click here for an example of how force calculation works in this model framework.

Clone this wiki locally