Package pybox2d :: Module Box2D :: Class b2Sweep |
[hide private]
[frames] | no frames]

# type b2Sweep

source code

This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may no coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.

Instance Methods | [hide private]
__repr__(self) | source code
__getstate__(self, additional_ignore=`[``]`) Returns a dictionary representation of self, with dict(var=value [, ...]) | source code
__setstate__(self, dict) Takes each variable=value pair in the dictionary and sets the attributes based on them | source code
b2Sweep |
__init__(self) | source code
__swig_destroy__(...) delete_b2Sweep(b2Sweep self) |
GetXForm(...) b2Sweep_GetXForm(b2Sweep self, b2XForm xf, float32 t) | source code
Advance(...) b2Sweep_Advance(b2Sweep self, float32 t) | source code

Properties | [hide private]
| thisown The membership flag
| localCenter b2Sweep_localCenter_get(b2Sweep self) -> b2Vec2
| c0 b2Sweep_c0_get(b2Sweep self) -> b2Vec2
| c b2Sweep_c_get(b2Sweep self) -> b2Vec2
| a0 b2Sweep_a0_get(b2Sweep self) -> float32
| a b2Sweep_a_get(b2Sweep self) -> float32
| t0 b2Sweep_t0_get(b2Sweep self) -> float32

Method Details | [hide private]

### __repr__(self) (Representation operator) | source code
Overrides: object.__repr__ (inherited documentation)

### __getstate__(self, additional_ignore=`[``]`) | source code
    Returns a dictionary representation of self, with
     dict(var=value [, ...])

    additional_ignore can be specified to ignore certain
    properties.

### __init__(self) (Constructor) | source code
Returns: b2Sweep Overrides: object.__init__

### GetXForm(...) | source code
    b2Sweep_GetXForm(b2Sweep self, b2XForm xf, float32 t)

    Get the interpolated transform at a specific time.

    Parameters:
    -----------

    t: the normalized time in [0,1].

### Advance(...) | source code
    b2Sweep_Advance(b2Sweep self, float32 t)

    Advance the sweep forward, yielding a new initial state.

    Parameters:
    -----------

    t: the new initial time.

Property Details | [hide private]

### thisown The membership flag

### localCenter b2Sweep_localCenter_get(b2Sweep self) -> b2Vec2

### c0 b2Sweep_c0_get(b2Sweep self) -> b2Vec2

### c b2Sweep_c_get(b2Sweep self) -> b2Vec2

### a0 b2Sweep_a0_get(b2Sweep self) -> float32

### a b2Sweep_a_get(b2Sweep self) -> float32

### t0 b2Sweep_t0_get(b2Sweep self) -> float32