Skip to content

editorGlobalsOrientationTowardsGroundCriterion

Class: OrientationTowardsGroundCriterion

Counts how many plates in the placed boxel align with the ground weighted by their surface area. If you place a slanted boxel on the side of a box, it will preferably be oriented like a ramp.

Hierarchy

OrientationTowardsGroundCriterion

Index

Constructors

Methods

Constructors

constructor

+ new OrientationTowardsGroundCriterion(): OrientationTowardsGroundCriterion

Inherited from GridInferrerCriterion.constructor

Defined in src/modules/kyub.core.boxel/src/GridInferring/GridInferrerCriterion.ts:10

Returns: OrientationTowardsGroundCriterion

Methods

score

score(context: AlignmentContext, meshPoint: Vector3, occurrences: number): number

Overrides GridInferrerCriterion.score

Defined in src/modules/kyub.core.boxel/src/GridInferring/OrientationTowardsGroundCriterion.ts:12

Parameters:

Name Type
context AlignmentContext
meshPoint Vector3
occurrences number

Returns: number