Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
xdecor
Commits
f85c4091
Commit
f85c4091
authored
5 years ago
by
y
Committed by
Jean-Patrick Guerrero
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix physics overrides
parent
bedcc4d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/animations.lua
+2
-2
2 additions, 2 deletions
handlers/animations.lua
with
2 additions
and
2 deletions
handlers/animations.lua
+
2
−
2
View file @
f85c4091
...
...
@@ -20,7 +20,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
pos
.
y
=
pos
.
y
-
0
.
5
clicker
:
setpos
(
pos
)
clicker
:
set_eye_offset
({
x
=
0
,
y
=
0
,
z
=
0
},
{
x
=
0
,
y
=
0
,
z
=
0
})
clicker
:
set_physics_override
(
1
,
1
,
1
)
clicker
:
set_physics_override
(
{
speed
=
1
,
jump
=
1
,
gravity
=
1
}
)
default
.
player_attached
[
player_name
]
=
false
default
.
player_set_animation
(
clicker
,
"stand"
,
30
)
...
...
@@ -28,7 +28,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
not
ctrl
.
sneak
and
vector
.
equals
(
vel
,
{
x
=
0
,
y
=
0
,
z
=
0
})
then
clicker
:
set_eye_offset
({
x
=
0
,
y
=-
7
,
z
=
2
},
{
x
=
0
,
y
=
0
,
z
=
0
})
clicker
:
set_physics_override
(
0
,
0
,
0
)
clicker
:
set_physics_override
(
{
speed
=
0
,
jump
=
0
,
gravity
=
1
}
)
clicker
:
setpos
(
pos
)
default
.
player_attached
[
player_name
]
=
true
default
.
player_set_animation
(
clicker
,
"sit"
,
30
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment