Skip to content

Commit

Permalink
shape.adoc: put custom shapes in a new section and link to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 25, 2024
1 parent ebbc298 commit a9cef08
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/en/modules/ROOT/pages/shape.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:page-pagination:
:url-api: https://stephengold.github.io/Libbulletjme/javadoc/master/com/jme3/bullet
:url-enwiki: https://en.wikipedia.org/wiki
:url-examples-shapes: https://github.com/stephengold/LbjExamples/tree/master/apps/src/main/java/com/github/stephengold/shapes
:url-shape: https://stephengold.github.io/Libbulletjme/javadoc/master/com/jme3/bullet/collision/shapes
:url-tutorial: https://github.com/stephengold/LbjExamples/blob/master/apps/src/main/java/com/github/stephengold/lbjexamples/apps

Expand Down Expand Up @@ -183,8 +184,10 @@ Similarly, collisions between `GImpactCollisionShape` and `PlaneCollisionShape`
objects are never detected.
====

Furthermore, you can develop custom collision shapes in Java by extending the
abstract {url-shape}/CustomConvexShape.html[`CustomConvexShape`] class.
== Custom shape classes

Furthermore, you can define new shape classes by extending the
abstract {url-shape}/CustomConvexShape.html[`CustomConvexShape`] class:

[cols="2*",grid="none"]
|===
Expand All @@ -194,11 +197,14 @@ abstract {url-shape}/CustomConvexShape.html[`CustomConvexShape`] class.
{item} convex +
{item} positive margin +
{item} imprecise +
{item} subclass determines scalability
{item} each subclass determines its scalability
|image:CustomConvex.png[height=160]

|===

Examples of this are found in
{url-examples-shapes}/custom[the `com.github.stephengold.shapes.custom` package].

== Convex versus concave

The _convex_ collision-shape classes are those
Expand Down

0 comments on commit a9cef08

Please sign in to comment.