# US 2006/0217945 A1 · Computer simulation of body dynamics including a solver that solves in linear time for a set of constraints

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0217945 A1
- Document ID: US20060217945A1
- Status: Published application
- Kind: A1
- Application number: 11/388,778
- Filed: 2006-03-23
- Published: 2006-09-28
- Earliest claimed: 2005-03-23
- Assignees: Electronic Arts Inc.
- Inventors: Jean-Christophe Leprevost
- Web page: https://patentgrep.com/patent/US20060217945A1

## CPC

- G06T 13/20: Three-dimensional [3D] animation
- G06F 17/11: for solving equations {, e.g. nonlinear equations, general mathematical optimization problems (optimization specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06T 2210/21: Collision detection, intersection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Computer simulation of the dynamics of rigid bodies interacting through collisions, stacks and joints is performed using a constraint-based system in which constraints are defined in terms of the positions of the bodies. Displacements caused by reaction forces necessary to ensure that the bodies comply with the position constraints can be calculated and can be done iteratively by updating equations defining the reaction forces and the displacements such that the computation time and memory resources required to perform the calculations is linearly dependent upon the number of bodies and the number of contacts and joints between the bodies.

## Claims

### Claim 1

In an evaluator that evaluates a plurality of rigid bodies defined by values stored in a memory device, a method of calculating simulated motion of the plurality of rigid bodies that would occur given representations of positions of the plurality of rigid bodies in a model space at a first time, data representing behaviours of the plurality of rigid bodies in the model space, and parameters representing simulated forces that would be acting on the rigid bodies, the method comprising:
(a) receiving, as input to the evaluator, constraint signals representing constraint parameters defining at least one constraint, wherein the constraint is a condition limiting a motion parameter of at least one of the plurality of rigid bodies;
(b) for a given constraint of the at least one constraint, calculating a value of a reaction parameter affecting the at least one motion parameter using data defining a previous value of the at least one motion parameter; and using data defining a previous value of the reaction parameter;
(c) updating the value of the at least one motion parameter using the calculated value of the reaction parameter, data defining the constraint and the previous value of the motion parameter; and
(d) repeating steps (b) and (c) for each constraint.

### Claim 2 (depends on 1)

A method according to claim 1, wherein the value of the at least one motion parameter is updated using the calculated value of the reaction parameter, a transpose of the data defining the constraint, and a previous value of the motion parameter.

### Claim 3 (depends on 1)

A method according to claim 1, wherein the reaction parameter comprises a Lagrange multiplier.

### Claim 4 (depends on 1)

A method according to claim 1, wherein each constraint comprises one of a contact constraint and a joint constraint.

### Claim 5 (depends on 1)

A method according to claim 1, wherein the motion parameter comprises one of a position parameter, a displacement parameter and a velocity parameter.

### Claim 6

A method of processing data defining a plurality of objects, positions and velocities of the plurality of objects and a plurality of constraints on the plurality of objects, to calculate a motion parameter of the objects at different times, the method comprising:
iteratively evaluating an equation defining a reaction to a constraint as a function of a motion parameter of the objects and an equation defining the motion parameter of the objects as a function of the reaction,
wherein the equation defining the reaction is evaluated for a given iteration using a value of the motion parameter calculated on a previous iteration by evaluating the equation defining the motion parameter.

### Claim 7 (depends on 6)

A method according to claim 6, wherein each iteration to evaluate the equation defining the reaction and the equation defining the motion parameter is performed for a respective one of the plurality of constraints.

### Claim 8 (depends on 6)

A method according to claim 6, wherein each constraint comprises one of a contact and a joint between the objects.

### Claim 9

Processing apparatus operable to calculate a motion parameter of a plurality of rigid bodies, the apparatus comprising:
a data store to store parameters defining an initial state of a plurality of bodies and data defining a plurality of constraints constraining the motion of the bodies;
a motion constraint solver operable to calculate at least one of a position parameter and a velocity parameter of each body by performing processing for each constraint separately to iteratively update the position parameter or the velocity parameter of each body such that each iteration is performed by updating previously calculated parameters.

### Claim 10 (depends on 9)

Apparatus according to claim 9, wherein the motion constraint solver is operable to evaluate at least two equations on each iteration:
one of the equations defining a reaction to the constraints as a function of at least one of the position parameter and the velocity parameter; and
the other of the equations defining the at least one of the position parameter and the velocity parameter as a function of the reaction to the constraints.

### Claim 11

A computer-readable medium having stored thereon computer program instructions for an evaluator that evaluates a plurality of rigid bodies defined by values stored in a memory device, a method of calculating simulated motion of the plurality of rigid bodies that would occur given representations of positions of the plurality of rigid bodies in a model space at a first time, data representing behaviours of the plurality of rigid bodies in the model space, and parameters representing simulated forces that would be acting on the rigid bodies, the medium comprising:
(a) program code for receiving, as input to the evaluator, constraint signals representing constraint parameters defining at least one constraint, wherein the constraint is a condition limiting a motion parameter of at least one of the plurality of rigid bodies;
(b) program code for calculating, for a given constraint of the at least one constraint, a value of a reaction parameter affecting the at least one motion parameter using data defining a previous value of the at least one motion parameter, and using data defining a previous value of the reaction parameter;
(c) program code for updating the value of the at least one motion parameter using the calculated value of the reaction parameter, data defining the constraint and the previous value of the motion parameter; and
(d) program code for flow control that loops through program code (b) and (c) for each constraint.

### Claim 12

A data signal carrying computer program instructions for an evaluator that evaluates a plurality of rigid bodies defined by values stored in a memory device, a method of calculating simulated motion of the plurality of rigid bodies that would occur given representations of positions of the plurality of rigid bodies in a model space at a first time, data representing behaviours of the plurality of rigid bodies in the model space, and parameters representing simulated forces that would be acting on the rigid bodies, the data signal comprising:
(a) program code for receiving, as input to the evaluator, constraint signals representing constraint parameters defining at least one constraint, wherein the constraint is a condition limiting a motion parameter of at least one of the plurality of rigid bodies;
(b) program code for calculating, for a given constraint of the at least one constraint, a value of a reaction parameter affecting the at least one motion parameter using data defining a previous value of the at least one motion parameter, and using data defining a previous value of the reaction parameter;
(c) program code for updating the value of the at least one motion parameter using the calculated value of the reaction parameter, data defining the constraint and the previous value of the motion parameter; and
(d) program code for flow control that loops through program code (b) and (c) for each constraint.
