Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 3D physics behavior #7149

Draft
wants to merge 59 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
96b053f
Add skeletons.
D8H Oct 31, 2024
5decafa
Synchronize positions.
D8H Nov 4, 2024
b3febdc
Add gravity and forces.
D8H Nov 4, 2024
7426973
Avoid allocations.
D8H Nov 4, 2024
38df693
Add some properties.
D8H Nov 4, 2024
a3428e9
Update object size.
D8H Nov 5, 2024
259b8ee
Add bodyType property.
D8H Nov 5, 2024
a9fe0bb
Fix size changes.
D8H Nov 5, 2024
582371f
Add density property.
D8H Nov 5, 2024
91fdf70
Handle some shapes.
D8H Nov 5, 2024
540b507
Handle object deletion.
D8H Nov 5, 2024
9742310
Add properties for custom shape size.
D8H Nov 5, 2024
bf3c4ba
Add collision conditions.
D8H Nov 6, 2024
e7fddec
Fix a memory leak.
D8H Nov 6, 2024
68b45e3
Put back the convex radius.
D8H Nov 7, 2024
4230ef7
Add the bullet property.
D8H Nov 7, 2024
acaee8e
Handle collision layers.
D8H Nov 7, 2024
fb299d4
Fix library loading in browsers.
D8H Nov 7, 2024
775c02a
Add torque actions.
D8H Nov 7, 2024
6113769
Forbid to use the behavior with 2D objects.
D8H Nov 8, 2024
9a301b4
Handle hot-reload.
D8H Nov 8, 2024
bdbf6a1
Add getters and setters.
D8H Nov 12, 2024
a8ed839
Use a new icon.
D8H Nov 12, 2024
ae32d09
Add a property for the shape orientation.
D8H Nov 12, 2024
cdc9e0b
Fix description.
D8H Nov 12, 2024
af0779d
Fix velocity setters and thin shapes.
D8H Nov 13, 2024
8bff97c
WIP character
D8H Nov 14, 2024
dfb98df
WIP walk
D8H Nov 15, 2024
2a556c9
WIP Jump
D8H Nov 15, 2024
79e868f
Fix character up axis.
D8H Nov 19, 2024
d68920e
Fix zone that can land.
D8H Nov 19, 2024
c1fe0a4
Fix position round trip.
D8H Nov 19, 2024
0677644
Fix floor following
D8H Nov 19, 2024
79b331d
Fix collision.
D8H Nov 19, 2024
18c7eef
Add a condition to check the current floor.
D8H Nov 20, 2024
63f637c
Clean up layer setup.
D8H Nov 20, 2024
772a698
Try to follow platforms that moves outside of the physics engine.
D8H Nov 20, 2024
72cb5a7
Add some getters and setters.
D8H Nov 20, 2024
c77ac93
Fix bunny jumping.
D8H Nov 21, 2024
bd47302
Declare character properties.
D8H Nov 21, 2024
b5f5bfa
Fix jump sustain time.
D8H Nov 21, 2024
ccf5859
Handle sideways speed.
D8H Nov 22, 2024
c15aeb6
Handle stick.
D8H Nov 22, 2024
ac4172e
Declare some instructions.
D8H Nov 26, 2024
6a109a7
Handle hot-reload.
D8H Nov 26, 2024
df54f30
Fix jump state.
D8H Nov 28, 2024
58fa205
Move the icon.
D8H Nov 28, 2024
32d70ff
Add an icon for the character.
D8H Nov 28, 2024
5ce9ec2
Remove dead code.
D8H Nov 28, 2024
76f70df
Improve multiplayer sync
D8H Nov 29, 2024
b3675cd
Temporary fix character position synchronization.
D8H Nov 29, 2024
6c3ff25
Extract a BodyUpdater.
D8H Dec 2, 2024
ec37b03
Clean up character code.
D8H Dec 2, 2024
1ebab8b
Fix the floor following.
D8H Dec 2, 2024
e8a4be3
Failed attempt to fit maxSlopeAngle.
D8H Dec 2, 2024
6edb7aa
Fix the floor following.
D8H Dec 3, 2024
b35f427
Fix capsule size and size/mass update.
D8H Dec 3, 2024
289b001
Use the object custom center.
D8H Dec 3, 2024
7828970
Offset the character according to the physics shape instead of the ob…
D8H Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions Extensions/Physics2Behavior/JsExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ module.exports = {
.addCondition(
'IsDynamic',
_('Is dynamic'),
_('Test if an object is dynamic.'),
_('Check if an object is dynamic.'),
_('_PARAM0_ is dynamic'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -727,7 +727,7 @@ module.exports = {
.addCondition(
'IsStatic',
_('Is static'),
_('Test if an object is static.'),
_('Check if an object is static.'),
_('_PARAM0_ is static'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -759,7 +759,7 @@ module.exports = {
.addCondition(
'IsKinematic',
_('Is kinematic'),
_('Test if an object is kinematic.'),
_('Check if an object is kinematic.'),
_('_PARAM0_ is kinematic'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -791,7 +791,7 @@ module.exports = {
.addCondition(
'IsBullet',
_('Is treat as bullet'),
_('Test if an object is being treat as a bullet.'),
_('Check if an object is being treat as a bullet.'),
_('_PARAM0_ is bullet'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -825,7 +825,7 @@ module.exports = {
.addCondition(
'HasFixedRotation',
_('Has fixed rotation'),
_('Test if an object has fixed rotation.'),
_('Check if an object has fixed rotation.'),
_('_PARAM0_ has fixed rotation'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -859,7 +859,7 @@ module.exports = {
.addCondition(
'IsSleepingAllowed',
_('Is sleeping allowed'),
_('Test if an object can sleep.'),
_('Check if an object can sleep.'),
_('_PARAM0_ can sleep'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -898,7 +898,7 @@ module.exports = {
.addCondition(
'IsSleeping',
_('Is sleeping'),
_('Test if an object is sleeping.'),
_('Check if an object is sleeping.'),
_('_PARAM0_ is sleeping'),
_('Dynamics'),
'res/physics32.png',
Expand Down Expand Up @@ -1267,7 +1267,7 @@ module.exports = {
.addCondition(
'LayerEnabled',
_('Layer enabled'),
_('Test if an object has a specific layer enabled.'),
_('Check if an object has a specific layer enabled.'),
_('_PARAM0_ has layer _PARAM2_ enabled'),
_('Filtering'),
'res/physics32.png',
Expand Down Expand Up @@ -1303,7 +1303,7 @@ module.exports = {
.addCondition(
'MaskEnabled',
_('Mask enabled'),
_('Test if an object has a specific mask enabled.'),
_('Check if an object has a specific mask enabled.'),
_('_PARAM0_ has mask _PARAM2_ enabled'),
_('Filtering'),
'res/physics32.png',
Expand Down Expand Up @@ -1897,7 +1897,7 @@ module.exports = {
.addCondition(
'JointFirstObject',
_('Joint first object'),
_('Test if an object is the first object on a joint.'),
_('Check if an object is the first object on a joint.'),
_('_PARAM0_ is the first object for joint _PARAM2_'),
_('Joints'),
'res/physics32.png',
Expand All @@ -1913,7 +1913,7 @@ module.exports = {
.addCondition(
'JointSecondObject',
_('Joint second object'),
_('Test if an object is the second object on a joint.'),
_('Check if an object is the second object on a joint.'),
_('_PARAM0_ is the second object for joint _PARAM2_'),
_('Joints'),
'res/physics32.png',
Expand Down Expand Up @@ -2382,7 +2382,7 @@ module.exports = {
.addCondition(
'RevoluteJointLimitsEnabled',
_('Revolute joint limits enabled'),
_('Test if a revolute joint limits are enabled.'),
_('Check if a revolute joint limits are enabled.'),
_('Limits for revolute joint _PARAM2_ are enabled'),
_('Joints/Revolute'),
'JsPlatform/Extensions/revolute_joint24.png',
Expand Down Expand Up @@ -2461,7 +2461,7 @@ module.exports = {
.addCondition(
'RevoluteJointMotorEnabled',
_('Revolute joint motor enabled'),
_('Test if a revolute joint motor is enabled.'),
_('Check if a revolute joint motor is enabled.'),
_('Motor of revolute joint _PARAM2_ is enabled'),
_('Joints/Revolute'),
'JsPlatform/Extensions/revolute_joint24.png',
Expand Down Expand Up @@ -2700,7 +2700,7 @@ module.exports = {
.addCondition(
'PrismaticJointLimitsEnabled',
_('Prismatic joint limits enabled'),
_('Test if a prismatic joint limits are enabled.'),
_('Check if a prismatic joint limits are enabled.'),
_('Limits for prismatic joint _PARAM2_ are enabled'),
_('Joints/Prismatic'),
'JsPlatform/Extensions/prismatic_joint24.png',
Expand Down Expand Up @@ -2779,7 +2779,7 @@ module.exports = {
.addCondition(
'PrismaticJointMotorEnabled',
_('Prismatic joint motor enabled'),
_('Test if a prismatic joint motor is enabled.'),
_('Check if a prismatic joint motor is enabled.'),
_('Motor for prismatic joint _PARAM2_ is enabled'),
_('Joints/Prismatic'),
'JsPlatform/Extensions/prismatic_joint24.png',
Expand Down Expand Up @@ -3459,7 +3459,7 @@ module.exports = {
.addCondition(
'WheelJointMotorEnabled',
_('Wheel joint motor enabled'),
_('Test if a wheel joint motor is enabled.'),
_('Check if a wheel joint motor is enabled.'),
_('Motor for wheel joint _PARAM2_ is enabled'),
_('Joints/Wheel'),
'JsPlatform/Extensions/wheel_joint24.png',
Expand Down
Loading
Loading