mirror of
https://github.com/daveth/makespherical.git
synced 2025-03-04 03:12:59 -05:00
Merge branch 'SMSum-master'
This commit is contained in:
commit
80b702ba04
@ -168,6 +168,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 )
|
||||
@ -312,4 +322,4 @@ if CLIENT then
|
||||
|
||||
end )
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user