box2d 3.0.0
A 2D physics engine for games
 
Loading...
Searching...
No Matches
b2SmoothSegment Struct Reference

#include <geometry.h>

Collaboration diagram for b2SmoothSegment:

Data Fields

b2Vec2 ghost1
 The tail ghost vertex.
 
b2Segment segment
 The line segment.
 
b2Vec2 ghost2
 The head ghost vertex.
 

Detailed Description

A smooth line segment with one-sided collision. Only collides on the right side. Several of these are generated for a chain shape. ghost1 -> point1 -> point2 -> ghost2

Field Documentation

◆ ghost1

b2Vec2 b2SmoothSegment::ghost1

The tail ghost vertex.

◆ ghost2

b2Vec2 b2SmoothSegment::ghost2

The head ghost vertex.

◆ segment

b2Segment b2SmoothSegment::segment

The line segment.


The documentation for this struct was generated from the following file: