载入中...
搜索中...
未找到
eve::procgen::road::RoadControlPoint结构体 参考

One authored control point on a road centerline (world space, Y-up). 更多...

#include <RoadTypes.h>

Public 属性

float x = 0.f
 
float y = 0.f
 
float z = 0.f
 
float widthScale
 Positive driving-surface width multiplier in [0.05,16]; curb/sidewalk widths stay in metres.
 
float rollDegrees
 Unwrapped crossfall in [-360,360] degrees; interpolation preserves the authored rotation direction.
 
float splineStrength = .5f
 Outgoing Catmull span tangent strength in [0.01,1]; .5 preserves classic Catmull.
 
RoadPathControl pathControl = RoadPathControl::Spline
 Controller of this marker to the next marker.
 
bool alignStraightStart = true
 
bool alignStraightEnd
 Straight-adjacent XZ alignment with zero vertical derivative; reversal swaps ends.
 
bool circularFromEnd = false
 Derive circular geometry from the following endpoint tangent after reversal.
 
float rollCenterOffset = 0.f
 Signed width fraction of the roll axis: -.5 left, 0 center, .5 right.
 

详细描述

One authored control point on a road centerline (world space, Y-up).

在文件 RoadTypes.h 第 19 行定义.

类成员变量说明

◆ alignStraightEnd

bool eve::procgen::road::RoadControlPoint::alignStraightEnd
初始值:
=
false

Straight-adjacent XZ alignment with zero vertical derivative; reversal swaps ends.

在文件 RoadTypes.h 第 30 行定义.

◆ alignStraightStart

bool eve::procgen::road::RoadControlPoint::alignStraightStart = true

在文件 RoadTypes.h 第 29 行定义.

◆ circularFromEnd

bool eve::procgen::road::RoadControlPoint::circularFromEnd = false

Derive circular geometry from the following endpoint tangent after reversal.

在文件 RoadTypes.h 第 32 行定义.

◆ pathControl

RoadPathControl eve::procgen::road::RoadControlPoint::pathControl = RoadPathControl::Spline

Controller of this marker to the next marker.

在文件 RoadTypes.h 第 28 行定义.

◆ rollCenterOffset

float eve::procgen::road::RoadControlPoint::rollCenterOffset = 0.f

Signed width fraction of the roll axis: -.5 left, 0 center, .5 right.

在文件 RoadTypes.h 第 33 行定义.

◆ rollDegrees

float eve::procgen::road::RoadControlPoint::rollDegrees
初始值:
=
0.f

Unwrapped crossfall in [-360,360] degrees; interpolation preserves the authored rotation direction.

在文件 RoadTypes.h 第 25 行定义.

◆ splineStrength

float eve::procgen::road::RoadControlPoint::splineStrength = .5f

Outgoing Catmull span tangent strength in [0.01,1]; .5 preserves classic Catmull.

在文件 RoadTypes.h 第 27 行定义.

◆ widthScale

float eve::procgen::road::RoadControlPoint::widthScale
初始值:
=
1.f

Positive driving-surface width multiplier in [0.05,16]; curb/sidewalk widths stay in metres.

在文件 RoadTypes.h 第 23 行定义.

◆ x

◆ y

float eve::procgen::road::RoadControlPoint::y = 0.f

◆ z


该结构体的文档由以下文件生成: