mirror of
https://github.com/daveth/makespherical.git
synced 2025-03-04 03:12:59 -05:00
Fixed E2 Spherical not saving due to lack of register
This commit is contained in:
parent
825c612ac6
commit
987f3fea9c
@ -137,6 +137,7 @@ if SERVER then
|
||||
|
||||
data.radius = radius
|
||||
ent.noradius = data.noradius
|
||||
PrintTable(data)
|
||||
duplicator.StoreEntityModifier( ent, "MakeSphericalCollisions", data )
|
||||
|
||||
end
|
||||
@ -168,6 +169,16 @@ if SERVER then
|
||||
phys:EnableMotion( ismove )
|
||||
if not issleep then phys:Wake() end
|
||||
|
||||
local data = {}
|
||||
data.enabled = true
|
||||
data.isrenderoffset = 0
|
||||
data.mass = mass
|
||||
data.obbcenter = ent:OBBCenter()
|
||||
data.radius = radius
|
||||
data.renderoffset = Vector(0,0,0)
|
||||
ent.noradius = data.noradius
|
||||
|
||||
duplicator.StoreEntityModifier( ent, "MakeSphericalCollisions", data )
|
||||
end
|
||||
|
||||
function MakeSpherical.CopyConstraintData( ent, removeconstraints )
|
||||
|
Loading…
Reference in New Issue
Block a user