Skip to content

User manual 0.7.1 section 10.7 - example code has wrong shape type #117

@elldur

Description

@elldur

In the example code under section 10.7 this is written:

// Create the sphere collision shape rp3d::decimal radius = rp3d::decimal(3.0) const rp3d::BoxShape shape(radius); 

It says it wants to create a SphereShape but instead creates a BoxShape.
Also later on in the same example it uses shape like this: proxyShape = body->addCollisionShape(&shape, transform, mass); however addCollisionShape takes a non const pointer to shape so defining the shape as const won't compile.

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions