Skip to content

Velocity Component (ECS pt 2) - #3696

Draft
Crepestrom wants to merge 3 commits into
PixelGuys:masterfrom
Crepestrom:velocity-component
Draft

Crepestrom wants to merge 3 commits into
PixelGuys:masterfrom
Crepestrom:velocity-component

Conversation

@Crepestrom

@Crepestrom Crepestrom commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

part of #1124

entities now call from a velocity component to provide their position

@Crepestrom
Crepestrom marked this pull request as ready for review October 10, 2026 20:57
Comment thread src/server/Entity.zig

pos: Vec3d = .{0, 0, 0},
vel: Vec3d = .{0, 0, 0},
vel: *Vec3d = undefined,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot store a pointer to component data. This is illegal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aw alright ill store it properly then
this was the easier way to change it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does function properly though

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only until you add and remove more entities

@Crepestrom Crepestrom changed the title Velocity Component (ECS pt 1) Velocity Component (ECS pt 2) Oct 10, 2026
@Crepestrom
Crepestrom marked this pull request as draft October 10, 2026 21:01
@Crepestrom Crepestrom closed this Oct 10, 2026
@Crepestrom Crepestrom reopened this Oct 10, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants